with query1 do
begin
Databasename:='luliang';
close;
Sql.Clear;sql.Add('select 姓名,身份证 from kehe');
sql.add('where 身份证 not in ');
sql.add('(select 住客身份证号 from fangjianhekehu)');
EXEcSQL;active:=true;
end
begin
Databasename:='luliang';
close;
Sql.Clear;sql.Add('select 姓名,身份证 from kehe');
sql.add('where 身份证 not in ');
sql.add('(select 住客身份证号 from fangjianhekehu)');
EXEcSQL;active:=true;
end
begin
close;
Databasename:='luliang';
close;
Sql.Clear;sql.Add('select 姓名,身份证 from kehe');
sql.add('where 身份证 not in ');
sql.add('(select 住客身份证号 from fangjianhekehu)');
EXEcSQL;active:=true;
end
是什么错误?
再判断是不是程序的错误!
begin
close;
Databasename:='luliang';
close;
Sql.Clear;sql.Add('select 姓名,身份证 from kehe');
sql.add('where 身份证 not in ');
sql.add('(select 住客身份证号 from fangjianhekehu)');
open;//其它的不用了;
end
请您帮忙
是不是你的Query坏了,重新换一个。
还有数据库连接成功没有。
BDE连接成功没有。
看一看是不是有别的冲突