例:建立一個(gè)SQL的存儲(chǔ)過(guò)程,根據(jù)用戶(hù)ID修改用戶(hù)郵箱
--------------------------------------------------
創(chuàng)建存儲(chǔ)過(guò)程
CREATE PROCEDURE UpdEmail--存儲(chǔ)過(guò)程名字
@memberid int --用戶(hù)ID
AS
update Members set Email= '111@123.com' where MemberId=@memberid
GO
執(zhí)行存儲(chǔ)過(guò)程
EXECUTE UpdEmail @memberid=1
更多信息請(qǐng)查看IT技術(shù)專(zhuān)欄