q2.Close;
q2.SQL.Text :='select * from T_mainnum where cardnum= '+ maincd+'';
q2.Prepared;
q2.Open;
if q2.RecordCount=0 then
begin
...
end;
报错!求救!sos!
...全文
948打赏收藏
delphi sql 参数不足,期望是1的问题,急!
maincd是某个字符串 T_mainnum是数据表 q2.Close; q2.SQL.Text :='select * from T_mainnum where cardnum= '+ maincd+''; q2.Prepared; q2.Open; if q2.RecordCount=0 then begin ... end; 报错!求救!sos!