with ADOQuery1 do
begin
close;
SQL.Clear;
SQL.Add('create table :id (日期时间 datetime,摘要 char(100))');
Parameters.ParamByName('id').Value:=edit1.Text;
execsql;
end
用这个语句应该可以吧,为什么总提示有关参数的错误呢?
begin
close;
SQL.Clear;
SQL.Add('create table :id (日期时间 datetime,摘要 char(100))');
Parameters.ParamByName('id').Value:=edit1.Text;
execsql;
end
用这个语句应该可以吧,为什么总提示有关参数的错误呢?
with ADOQuery1 do
begin
close;
SQL.Clear;
SQL.Add('create table '+edit1.Text+'(日期时间 datetime,摘要 char(100))');
execsql;
end;