我想写个对表进行插入的存储过程语句,不知为什么老是说我语法有错
语句如下:
BEGIN
#Routine body goes here...
insert into t1(num, value, str) values(value1, value2, value3);
END;
这个是在navicat下写的。value1,value2为int,value3为varchar。
错误如下:
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 ')
BEGIN
#Routine body goes here...
insert into t1(num, value, str) values(va' at line 1
语句如下:
BEGIN
#Routine body goes here...
insert into t1(num, value, str) values(value1, value2, value3);
END;
这个是在navicat下写的。value1,value2为int,value3为varchar。
错误如下:
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 ')
BEGIN
#Routine body goes here...
insert into t1(num, value, str) values(va' at line 1
解决方案 »
- 使用命令将文本文件“*.txt”装载到数据库表中的问题
- 天啊unknown variables master-host
- 怎样显示计划任务的内容
- PostgreSQL备份与恢复
- 无法在phpMyadmin中添加表的问题~~~~~~~~~~~~~~~~~~
- 从备份恢复数据库,但有某些表恢复后不存在
- mysql有几个版本,有什么区别,mysql有中文版么,mysql适合安装在windowsXP上么?
- 如果设定一个mysql数据库的尺寸?
- 救命:谁知道将SQL SERVER里的数据库导到MYSQL里面?
- 启动mysql服务报Error:1067错误
- mysql 数据类型int长度问题
- 存储过程异常无法回滚——急
这样应该就没有问题啦;
你先用value1, value2, value3 用具体的数据替代掉,然后再一个个换回来,看看是什么问题