1、创建存储过程;
CREATE DEFINER=`user`@`%` PROCEDURE `delLastMonth`()
BEGIN
DECLARE lastmonth int;
SET lastmonth = DATE_FORMAT(date_sub(curdate(),interval
1、创建存储过程;
CREATE DEFINER=`user`@`%` PROCEDURE `delLastMonth`()
BEGIN
DECLARE lastmonth int;
SET lastmonth = DATE_FORMAT(date_sub(curdate(),interval