mysql 5
表结构如下:存储方式为innodb
table :
bug(id(自动增加,主键,int),name char(50),note char(50))
file(bid int foreign key(bid) references bug(id),filename char(50))
创建存储过程如下:create proc upproc
(@name char(50),@note char(50))
as
declare @id int
begin
insert into bug(name,note)
values(@name,@note)select @id=@@IDENTITY
insert into file(bid,filename)
select @id,@note
end
go错误如下:
MySQL 返回: #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 'proc upproc
(@name char(50),@note char(50))
as
declare @id int
begin
insert' at line 1
表结构如下:存储方式为innodb
table :
bug(id(自动增加,主键,int),name char(50),note char(50))
file(bid int foreign key(bid) references bug(id),filename char(50))
创建存储过程如下:create proc upproc
(@name char(50),@note char(50))
as
declare @id int
begin
insert into bug(name,note)
values(@name,@note)select @id=@@IDENTITY
insert into file(bid,filename)
select @id,@note
end
go错误如下:
MySQL 返回: #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 'proc upproc
(@name char(50),@note char(50))
as
declare @id int
begin
insert' at line 1
解决方案 »
- 如何 还没开始的,以开始时间这个字段正序排,ASC. 而已经开始了或已经过去了的,以开始时间为倒序排
- mysql 500万条数据分页优化。
- 局域网内mysql连不上问题,Communications link failure
- 在一个已成型的大型应用系统如何对MYSQL进行分库分表
- starting Mysql.manager of pid-file without updating.......
- 如何产生这样的一个新列
- postgresql如何判断视图存在
- 能不能MYSQL行列转化的例子
- 我修改了root的密码后,在command命令可以登入并可以访问数据库,但用ems mysql 却出现连接错误,bad handshake
- 初次使用,学习mysql!
- MySql乱码问题,在线求助!
- 用mysql导出数据库时,能做到每导出表中一行就加一个回车吗?
EXECUTE stmt_name [USING @var_name [, @var_name] ...];
{DEALLOCATE | DROP} PREPARE stmt_name;