📄 bugnet_bugnotification_getbugnotificationsbybugid.sql
字号:
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BugNet_BugNotification_GetBugNotificationsByBugId]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[BugNet_BugNotification_GetBugNotificationsByBugId]
GO
CREATE PROCEDURE [dbo].[BugNet_BugNotification_GetBugNotificationsByBugId]
@BugId Int
AS
SELECT
BugNotificationId,
BugId,
Username NotificationUsername,
Membership.Email NotificationEmail
FROM
BugNotification
INNER JOIN aspnet_Users Users ON BugNotification.CreatedUserId = Users.UserId
INNER JOIN aspnet_membership Membership on BugNotification.CreatedUserId = Membership.UserId
WHERE
BugId = @BugId
ORDER BY
Username
GO
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -