Update tableName SET columeName = REPLACE(columeName, 'a', 'b')
2、從指定表中的指定字段,自左截取$number位的字符串
Update tableName SET columeName = Left(columeName,$number)
舉例:
Left(abcd,1) = a
Left(abcd,3) = abc
3、從指定表中的指定字段,自左第$number1位起,截取$number2位的字符串,若$number2缺省,則自左第$number1位起截取全部字符串
Update tableName SET columeName = Substring(columeName,$number1[,$number2])
舉例:
Substring(abcd,1,2) = ab
Substring(abcd,2,2) = bc
Substring(abcd,2) = bcd
4、合併指定表中的指定字段與某些內容
Update tableName SET columeName = CONCAT(columeName,'$content')
5、返回子字符串在源字符串中的位置
Instr(源字符串,子字符串)
舉例:
Instr('abcd','bcd') = 2
6、計算字符串長度
Length(字符串)
舉例:
Length('abcd') = 4