X
xiaoshi0429
Unregistered / Unconfirmed
GUEST, unregistred user!
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.Sql.LoadFromFile(ExtractFileDir(Application.ExeName)+'/datascript.txt');
ADOQuery1.ExecSql;
datascript是我自己写的脚本文件,内容是:
CREATE TABLE GdJMcB(intGdJID integer not null,strGdJMc varchar(50) not null,
primary key(intGdJID,strGdJMc));
create table GdJMcB2(intGdJID2 integer not null,strGdJMc2 varchar(50) not null,
primary key(intGdJID2));
运行的时候出错:unexpected token "CREATE TABLE GdJMcB(intGdJID integer not nu"
was found following"begin-of-statement",expected token may include"<space>"
ADOQuery1.SQL.Clear;
ADOQuery1.Sql.LoadFromFile(ExtractFileDir(Application.ExeName)+'/datascript.txt');
ADOQuery1.ExecSql;
datascript是我自己写的脚本文件,内容是:
CREATE TABLE GdJMcB(intGdJID integer not null,strGdJMc varchar(50) not null,
primary key(intGdJID,strGdJMc));
create table GdJMcB2(intGdJID2 integer not null,strGdJMc2 varchar(50) not null,
primary key(intGdJID2));
运行的时候出错:unexpected token "CREATE TABLE GdJMcB(intGdJID integer not nu"
was found following"begin-of-statement",expected token may include"<space>"