D
dabing
Unregistered / Unconfirmed
GUEST, unregistred user!
sb:='';
for qs:= 0 to form4.ListBox2.Items.count-1 do
begin
sb:= sb+form4.ListBox2.Items[qs];
if qs<form4.ListBox2.Items.count-1 then sb:=sb+',' ;
end;
q_sql:='select equipment.name from equipment where equipment.name in ['+sb+'] ';
这样写运行时有错误:general sql error 缺少表达方式!
是sql 与举错了吗?怎么改的?
for qs:= 0 to form4.ListBox2.Items.count-1 do
begin
sb:= sb+form4.ListBox2.Items[qs];
if qs<form4.ListBox2.Items.count-1 then sb:=sb+',' ;
end;
q_sql:='select equipment.name from equipment where equipment.name in ['+sb+'] ';
这样写运行时有错误:general sql error 缺少表达方式!
是sql 与举错了吗?怎么改的?