C
cjhk007
Unregistered / Unconfirmed
GUEST, unregistred user!
有以下语句关键是sql不对
begin
with query1 do
begin
close;
with SQL do
begin
clear;
add('select Pattern,BodyLen,Jiaokou,ChestRnd from TBHType');
add('where Continent=edit2.text');
end;
open;
end;
end;
对于add('select Pattern,BodyLen,Jiaokou,ChestRnd from TBHType where BodyLen=10');
可以很好的执行,但是
对于对于add('select Pattern,BodyLen,Jiaokou,ChestRnd from TBHType where Pattern=一个字符串');
怎么书写呢?
begin
with query1 do
begin
close;
with SQL do
begin
clear;
add('select Pattern,BodyLen,Jiaokou,ChestRnd from TBHType');
add('where Continent=edit2.text');
end;
open;
end;
end;
对于add('select Pattern,BodyLen,Jiaokou,ChestRnd from TBHType where BodyLen=10');
可以很好的执行,但是
对于对于add('select Pattern,BodyLen,Jiaokou,ChestRnd from TBHType where Pattern=一个字符串');
怎么书写呢?