sql 语句
时间:2014-03-04 06:32:10
收藏:0
阅读:480
1.update两列的值相加:
如果两列是整数则,update table set a=a+b where id=1;
如果两列有字符串则,update table set a=concat(a,b) where id=1;//如果用+代替concat,会有warning:truncated incorrect double value ‘ *‘;
原文:http://www.cnblogs.com/playerboy/p/3578700.html
评论(0)