新手求助:创建存储过程问题!(急!)
我用下列代码创建存储过程失败。报出错误:“错误137:必须声明变量'@'”请高手解答!!!
CREATE PROCEDURE SelRoom
@RoomType char(2),
@RoomPrice smallmoney OUTPUT
AS
SELECT rNum FROM tblRoom
WHERE(rType=@RoomType)AND(rStats='N')
SELECT @ RoomPrice=rprice FROM tblRoomType
WHERE rType = @RoomType
GO