sp

时间:2021-03-30 11:37:42
【文件属性】:
文件名称:sp
文件大小:2KB
文件格式:ZIP
更新时间:2021-03-30 11:37:42
SP -从lbrms.Tr_BookTranscationsHeader中删除非活动用户最终********** select *的过程 ALTER PROC lbrms.usp_DelInActiveUser(@StudentID INT)AS BEGIN IF(@ StudentID = 0)BEGIN从lbrms.Ma_Student b LEFT选择b.StudentID,DATEDIFF(Day,b.RegisteredDate,GETDATE())为'No Days Inactive'外部联接lbrms.Tr_BookTranscationsHeader a ON b.StudentID = a.StudentID RequestDate为NULL且DATEDIFF(Day,b.RegisteredDate,GETDATE())> 7 UNION SELECT Student
【文件预览】:
sp-main
----README.md(8KB)

网友评论