最简单 无返回值 无参数 sql server存储过程
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
不要看他人高薪,且看闲时谁在拼
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