CONCAT(str1,str2)--连接str1和str2;
LENGTH(str)--str的长度(一个汉字的长度是2,一个字符的长度是1)
update article set articlename=CONCAT('cs:',articlename) where LENGTH(articleName)<5 AND userName='xxxxx';
正在关注 Linux 、开源、IT 的个人博客。
CONCAT(str1,str2)--连接str1和str2;
LENGTH(str)--str的长度(一个汉字的长度是2,一个字符的长度是1)
update article set articlename=CONCAT('cs:',articlename) where LENGTH(articleName)<5 AND userName='xxxxx';