mysql 5.5 phpadmin
语法改了吗?试错试到脑壳痛USE school;
DROP PROCEDURE IF EXISTS `aa`;
CREATE PROCEDURE aa(
IN bb INT,
OUT dd INT)
MODIFIES SQL DATA
BEGIN
INSERT INTO zx_class(class_name)
VALUES(bb);
SET @dd = LAST_INSERT_ID();
SELECT @dd;
END#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 7
语法改了吗?试错试到脑壳痛USE school;
DROP PROCEDURE IF EXISTS `aa`;
CREATE PROCEDURE aa(
IN bb INT,
OUT dd INT)
MODIFIES SQL DATA
BEGIN
INSERT INTO zx_class(class_name)
VALUES(bb);
SET @dd = LAST_INSERT_ID();
SELECT @dd;
END#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 7
解决方案 »
- mysql优化的问题
- 简单的查询,求帮忙
- 表的联合问题,很慢,怎么优化
- 请问下高手些.WEB请求和APP请求方式一样吗?
- mysql数据文件空闲空间问题
- postgresql,怎么copy远程机器上的文件到服务器
- mysql-nt.exe 内存占用超大
- 请问如何在mysql中删除用户
- mysqlworkbench6.3.4一打开就显示停止服务
- innodb一个索引命中问题
- MySQL8有没有32位的免安装zip版本,官网上好像只有64位的压缩包没有32位的
- mysql 5.7 的 mgr 复制,必须打开 gtid; 可是 如果打开gtid,就不能使用 temporary table了, 怎么处理呢 ?
这种不科学的事情怎么发生的
SET @dd := NULL ;
SELECT LAST_INSERT_ID() into @dd;