⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tasklist_updateusernotification.sql

📁 一个采用VS2008+Sql2000开发的任务管理系统
💻 SQL
字号:
-- =============================================
-- TaskList_UpdateUserNotification
-- =============================================
-- creating the store procedure
IF EXISTS (SELECT name 
	   FROM   sysobjects 
	   WHERE  name = N'TaskList_UpdateUserNotification' 
	   AND 	  type = 'P')
    DROP PROCEDURE TaskList_UpdateUserNotification
GO

CREATE PROCEDURE TaskList_UpdateUserNotification
	@Username VarChar(20),
  @PasswordHash VarChar(50),
  @ShouldNotify bit,
  @NotifyPeriod BigInt
AS

UPDATE TaskListUsers SET ShouldNotify = @ShouldNotify, NotifyPeriod = @NotifyPeriod, LastNotified = GetDate()
WHERE Username = @Username AND PasswordHash = @PasswordHash;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -