CREATE PROCEDURE mytestinf(ids int, out sc INT)
BEGIN
SELECT @scs:=count(1) from t3 where uid=ids;
set sc=@scs;
END;
CALL mytestinf(1,@b);
SELECT @b;
根據自己需要,要不要參數
CREATE PROCEDURE mytestinf(ids int, out sc INT)
BEGIN
SELECT @scs:=count(1) from t3 where uid=ids;
set sc=@scs;
END;
CALL mytestinf(1,@b);
SELECT @b;
根據自己需要,要不要參數
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。