我有这个程序,但这会引发“未知列”错误
USE dhod;
DELIMETER @@
CREATE PROCEDURE sp_drive_size(IN uname VARCHAR(100),IN size INT)
BEGIN
DECLARE dsize INT DEFAULT 0;
DECLARE new_size INT DEFAULT 0;
SELECT drive_size INTO dsize FROM profile WHERE username = uname;
SET new_size=dsize+size;
UPDATE profile SET drive_size=new_size WHERE username = uname;
END @@
DELIMETER ;
我 在“where 子句”中收到此错误未知列“uname”