- 2025年07月27日
- 星期日

# 使用的navicat 编辑的存储过程CREATE DEFINER=`root`@`localhost` PROCEDURE `insert_student_back`()BEGIN#定义max变量DECLARE max INT DEFAULT 0;select max(id) into max from student_back;#判断是不是空值 是空值就赋值为0if max is null thenset max
# 使用的navicat 编辑的存储过程CREATE DEFINER=`root`@`localhost` PROCEDURE `insert_student_back`()BEGIN#定义max变量DECLARE max INT DEFAULT 0;select max(id) into max from student_back;#判断是不是空值 是空值就赋值为0if max is null thenset max