函数中处理ADODataSet.commandText属性,怎样保证传入的sql字符串参数是正确的?
procedure Query(DS : TDataSet; sSql : string);
begin
with DS do
begin
if Active then close;
commandtext := sSql;
open;
end;
end;
...全文
311打赏收藏
如何处理传入的sql字符串参数?
函数中处理ADODataSet.commandText属性,怎样保证传入的sql字符串参数是正确的? procedure Query(DS : TDataSet; sSql : string); begin with DS do begin if Active then close; commandtext := sSql; open; end; end;