增量更新用Sql语句怎么写啊,达人救助
答案:2 悬赏:40
解决时间 2021-02-20 06:54
- 提问者网友:猖狂醉薇
- 2021-02-19 14:30
增量更新用Sql语句怎么写啊,达人救助
最佳答案
- 二级知识专家网友:青灯壁纸妹
- 2021-02-19 14:49
更新也即是修改语句
update 表名
set 列名=表达式 ……
[where 条件]
如update stu
set name=‘王’,sex='男'
where class=‘二班’;
update 表名
set 列名=表达式 ……
[where 条件]
如update stu
set name=‘王’,sex='男'
where class=‘二班’;
全部回答
- 1楼网友:开心就好
- 2021-02-19 16:19
语法如下:
update table set col_name=null where id=1
数据表 table的字段 col_name 需要支持为null才能正常执行。
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯