mysql substring_index remove last code example Example: mysql remove last character LEFT(col,length(col)-1)