CREATE proc Upadte_state
as
update Table_1 set [state]=2 where id in (select id from Table_1 where state=1 and GETDATE()>=tiemdate)
go
最简单 无返回值 无参数 sql server存储过程
猜你喜欢
转载自www.cnblogs.com/BoKeYuan259/p/10931325.html
今日推荐
周排行