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