2,495
社区成员
发帖
与我相关
我的任务
分享
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Text := 'select acco_name from (select * from bs_acco_info where acco_id=:e) a';
ADOQuery1.Parameters.ParamByName('e').Value := '0111000005';
ADOQuery1.Open;
exec sp_executesql N'select acco_name from (select * from bs_acco_info where acco_id=@P1) a
',N'@P1 varchar(10)','0111000005'