代码改变世界

sql 语句

2014-03-03 16:56  playerboy  阅读(223)  评论(0编辑  收藏  举报

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 ' *';