建立一個刪除多個表中數據的存儲過程(有點兒低效,至少能用吧,能夠傳入參數).net
DROP PROCEDURE IF EXISTS `DELETE_BY_NAME`; DELIMITER // CREATE PROCEDURE `DELETE_BY_NAME`( in cname varchar(20) ) BEGIN DELETE FROM contract_dsb WHERE name = cname; n條刪除語句 …… commit; END
參考網址:https://blog.csdn.net/hejin17909mm/article/details/52691936code