update:
update 表名 set 字段=新的值 where 条件
如:update pc.product set create_time = ‘2021-03-04 23:00:00’ where productname=“新建”
如果有两个表也可以:
update pc.product set create_time = ‘2021-03-04 23:00:00’ where productname in (select productname from productinfo where productname=“新建”)
sql更新删除数据
最新推荐文章于 2023-12-01 11:35:56 发布