0
点赞
收藏
分享

微信扫一扫

sql查询日期大于某一天 更新字段为null

7dcac6528821 2022-04-04 阅读 63
sql
SELECT * FROM `material` where transfer > "2022-04-01 00:00:00" and pgi='e'

UPDATE material set pgi=null  where transfer > "2022-04-01 00:00:00" and pgi='e' 
UPDATE table_name
SET column1=value1,column2=value2,...
WHERE some_column=some_value;

参考
https://blog.csdn.net/Olivia_Vang/article/details/100290032

https://www.runoob.com/sql/sql-update.html

举报

相关推荐

0 条评论