摘要:
mySql中是否能有SQLserver的@@error变量呢,或者如c#中的try catch语法呢。答案是肯定的,实例代码如下: 1 DROP PROCEDURE IF EXISTS sp_call_jobs; 2 CREATE PROCEDURE sp_call_jobs() 3 NOT DETERMINISTIC 4 SQL SECURITY DEFINER 5 COMMENT '' 6 BEGIN 7 declare _row,_err,_count int default 0; 8 DECLARE CONTINUE HANDLER FOR SQLEXCEPT... 阅读全文