裴
裴小锴
Unregistered / Unconfirmed
GUEST, unregistred user!
Syntax error in create table statement 是什么提示???
我的数据是::
procedure Form_EditData(Dataset:TDataset);
begin
end;
procedure TMZGL_DataModule.Ini_Data();
var Aquery:TAdoQuery;
sqlstr:string;
begin
Aquery:=TadoQuery.Create(self);
Aquery.Connection :=MZGL_DataModule.ADOConnection1;
with Aquery do
begin
close;
sql.Clear;
sql.Add('create table mz ');
sql.Add('(d_s_mzdm char(3), ');
sql.Add(' d_s_mzmc char(20) ');
sql.Add('primary key (d_s_mzdm))');
end;
Aquery.ExecSQL ;
Aquery.Close;
我的数据是::
procedure Form_EditData(Dataset:TDataset);
begin
end;
procedure TMZGL_DataModule.Ini_Data();
var Aquery:TAdoQuery;
sqlstr:string;
begin
Aquery:=TadoQuery.Create(self);
Aquery.Connection :=MZGL_DataModule.ADOConnection1;
with Aquery do
begin
close;
sql.Clear;
sql.Add('create table mz ');
sql.Add('(d_s_mzdm char(3), ');
sql.Add(' d_s_mzmc char(20) ');
sql.Add('primary key (d_s_mzdm))');
end;
Aquery.ExecSQL ;
Aquery.Close;