mysql计算问题。。。~~~

图片说明
现在插入数据(insert into)是我要字段num1_0累加3,sql语句应该怎么写?

 update table set num1_0=num1_0+1 where id=1

mysql 可以定义变量,然后在插入的时候用这个变量就可以;
然后执行插入的时候引入变量就可以,插入完成讲变量+1就ok了。

insert into table num1_0 values(num1_0+3);

参考自:
MySQL insert用法详解 http://www.data.5helpyou.com/article421.html