数据库SQL实践43:将所有to_date为9999-01-01的全部更新为NULL

思路:

运用update 表名 set 列名=新列值,列名=新列值,....where 表达式。

update titles_test set from_date='2001-01-01',to_date=null where to_date='9999-01-01';

猜你喜欢

转载自blog.csdn.net/weixin_43160613/article/details/84671285
今日推荐