下面是一个mysql进程的demo,在Mysql Query Browser可以成功执行。到了 **.sql文件里,用ant执行却报错。
drop table IF exists `attachment`;
create table attachment (
id int not null auto_increment,
title varchar(50) not null,
description varchar(255) not null,
primary key (id)
) type = InnoDB;
drop procedure if exists delete_attachment;
DELIMITER \\
create procedure delete_attachment
(in noteId integer)
begin
delete from attachment where id = noteId;
end
\\
我的ant代码可以成功执行其它mysql脚本,唯独进程报错。代码如下
${database.jar}
2008年8月22日 16:15