CONCAT(str1,str2)–连接str1和str2;
LENGTH(str)–str的长度(一个汉字的长度是2,一个字符的长度是1)
update article set articlename=CONCAT(’cs:’,articlename) where LENGTH(articleName)<5 AND userName=’xxxxx’;
查看文章 |
CONCAT(str1,str2)–连接str1和str2; LENGTH(str)–str的长度(一个汉字的长度是2,一个字符的长度是1) update article set articlename=CONCAT(’cs:’,articlename) where LENGTH(articleName)<5 AND userName=’xxxxx’; |