create procedure Test
(@uid int,@time datetime)
as
update app_time set c_flag=0 where c_uid=@uid and c_time<@time
go
(@uid int,@time datetime)
as
update app_time set c_flag=0 where c_uid=@uid and c_time<@time
go
解决方案 »
- XML 节点间插入的内容含有<>怎么弄啊!?
- 用户控件中的服务器Button在用jquery隐藏在显示后无法提交服务器
- 这个文件应该放在什么位置
- asp.net 如何缓存问题
- 100分助,关于扩展GridView的问题
- 请问VRC289() Jobs Site Starter Kit1怎么安装?下载后用VS直接打开是文本,解压后没有见到安装文件?
- FormView切换Mode为Edit时,用户控件的属性丢失?
- 俩DropDownList联动问题?
- 高手快来指点!!!!!,分不够可以再加!!!!!! 急切,在线等
- 怎样可以做出自动刷屏的客户及服务端页面?
- 我用asp.net(vb.net语法),,怎么动态添加控件的事件呀(比如button_click)??谢谢了
- 如何对一个程序做性能的评测呢?
如果在表app_time.中如果c_uid=cuid而且,c_time<ctime时候,将c_flag更改为0;如果c_time>ctime,则c_time=ctime,c_flag=1
(@uid int,@time datetime)
as
update app_time set c_flag=0 where c_uid=@uid and c_time<@time
update app_time set c_flag=1,c_time=ctime where c_uid<>@uid and c_time<@time
go
create procedure Test
(@uid int,@time datetime)
as
update app_time set c_flag=0 where c_uid=@uid and c_time<@time
update app_time set c_flag=1,c_time=ctime where c_time>@time
go
(@cuid int,
@ctime datetime)
as
update app_time set c_flag=0 where c_uid=@cuid and c_time<@ctime
update app_time set c_flag=1,c_time=@ctime where c_uid=@cuid and c_time>@ctime
go