时间:2021-07-01 10:21:17 帮助过:28人阅读
create procedure p_insertDome()
begin
declare continue handler for sqldate '42S02' set @x=1;
insert into userinfo2(uid,name,password)values('1','demo','123456');
insert into employ('empno','date')values('2220','1993-12-14');
end;
$$;假如第一个语句出现数据表不存在,就不会影响下一行语句执行
以上就是MySQL高级四——自定义条件和处理的内容,更多相关内容请关注PHP中文网(www.gxlcms.com)!