CREATE PROC PS_LOGIN(
@ID NVARCHAR(50),
@PSW NVARCHAR(50)
)
AS
BEGIN
SELECT * FROM Table_Users WHERE ID=@ID AND PSW=@PSW
END
答案 0 :(得分:0)
尝试这样的事情......
IF OBJECT_ID('PS_LOGIN' , 'P') IS NOT NULL
DROP PROC PS_LOGIN
GO
CREATE PROC PS_LOGIN(
@ID NVARCHAR(50),
@PSW NVARCHAR(50)
)
AS
BEGIN
SELECT * FROM Table_Users WHERE ID=@ID AND PSW=@PSW
END
GO