CnPack Forum

#1 菜鸟求助
我想用双变量查询，可是怎么也不行？
sql.add('select 姓名 from shujukeming where '+cxzd+' like''''%'+cxnr+'%''');
cxzd cxnr都是变量，应该怎么改？:handshake
6/22 00:24
cacausia

#2
[code]
var
ColumnName, Value: string;
begin
ColumnName:= 'your Column Name';
Value:= '...';
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add('SELECT * FROM TabelName WHERE ' + ColumnName + ..

#2 >>Next Page

Forum:技术板块灌水区 ...
Thread:菜鸟求助
Next Thread:关于记录中.互相引用 ...

Home
Login

Powered by Discuz!