我是菜鸟,请那个老师帮我看看错误
CREATE PROCEDURE Pr_GetLeavewordsAS
SELECT *
FROM Leavewords
ORDER BY CreateTime DESC
CREATE PROCEDURE Pr_GetSingleLeaveword
(
@LeavewordID int
)
AS
SELECT Leaveword.*
FROM Leavewords
WHERE LeavewordID = @LeavewordID
CREATE PROCEDURE Pr_AddLeaveword
(
@Title varchar(100),@Body varchar(2000)=NULL
)
AS
INSERT INTO
Leavewords(Title,Body,CreateTime)
VALUES(@Title,@Body,GetDate())
RETURN @@identity
CREATE PROCEDURE Pr_DeleteLeaveword
(
@LeavewordID int
)
AS
DELETE Leavewords
WHERE LeavewordID = @LeavewordID
[此贴子已经被作者于2007-3-28 9:52:44编辑过]