.net 存储过程 --时间相减
来源:互联网 发布:欧洲网络与信息安全局 编辑:程序博客网 时间:2024/05/30 05:40
Create procedure BillContentDeadline
as
declare @recordercount int
select @recordercount = count(*) from dbo.DeadlineView where Deadline=0 or Deadline<0
if (@recordercount>0)
begin
update DeadlineView set AuditingState='已到期' where Deadline =0 and AuditingState='已审核'
update DeadlineView set AuditingState='已到期' where Deadline <0 and AuditingState='已审核'
end
-----------------------创建存储过程
SELECT DATEDIFF(d, GETDATE(), PublishEndTime) AS Deadline(关键), BillID, ProvinceID, CityID, PublishType, LinkType, BillName, BillDescription, PublishStartTime,
PublishEndTime(关键), EnterPriseAdress, EnterPriseURL, Email, RelationPerson, Headship, OfficeTel, Mobile, QQ, Remark, PublishContent, LinkURL,
AuditingState, ChannelID, SecondTypeID, BillImage, ProvinceName, ChannelName, SecondTypeName, cityName, FirstLocationID, SecondLocationID,
FirstLocationName, SecondLocationName
FROM dbo.BillContent_View
------------------------创建视图
- .net 存储过程 --时间相减
- 存储过程运行时间
- ASP.NET;存储过程
- .net执行存储过程
- .net调用存储过程
- .net调用存储过程
- .net执行存储过程
- .net调用存储过程
- asp.net 存储过程
- MSSQL 时间通用存储过程
- 存储过程变量影响时间
- oracle 存储过程 传入时间
- 查询存储过程创建时间
- MySQL存储过程获取时间
- MySql存储过程时间加减法
- Asp.net Membership的BUG:存储过程错误导致无法更新用户最近活动时间
- C#.NET使用存储过程
- .NET操作MySQL存储过程
- 转:090807
- ColumnLayout的使用方法
- SQL:select case when的一些用法
- GE,FE,E1,POS接口
- 【转】高级PHP应用程序漏洞审核技术
- .net 存储过程 --时间相减
- shell 的使用体会
- C#中值类型和引用类型的分析
- ASP.NET中怎么样将页面设为首页,加入收藏夹
- 手机开发入门学习
- Symbian编程总结-基础篇-动态缓冲区(1)-回顾HBufC
- ASP.NET WebForm 之 PostBack
- 心理学166个现象(很多,别一次看完!)[1-19]
- Linux vi ^M过滤