remove first character from mysql field

后端 未结 3 1838
迷失自我
迷失自我 2021-01-12 12:39

I need advices in order to make a process on my list of values. I have a table llx_societe and some fields where one of them is code_client. This f

3条回答
  •  孤街浪徒
    2021-01-12 13:35

    Try this:

      UPDATE llx_societe
        SET code_client= SUBSTR(code_client, 2) 
        WHERE code_client between '00100' AND '00999'
    

    MySQL SUBSTR() function

提交回复
热议问题