adoquery问题? 我遇到一个问题搞不出来:现在要输入3个参数查询,在SQL中输入如下: select * from bom_mstrwhere :a :b :c 运行时候报错(第二行@p2附近有语法错误)不知该如何更改? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from bomm_mstrwhere column1=:a and column2=:b and column3=:c 同意yzykjh(多米诺骨牌)的代码。 select * from bom_mstrwhere :a and :b and :c TO ALL: 我的参数是这样的,第一个是列,第二个是'='或'like',第三个是值. 比如 select * from bom_mstr where bom_fxdm = 'f001' 上面的解答好象不行. var sqlstr: string;begin sqlstr:=参数1+参数2+参数3; aq.sql.str:='select * from bom_mstr where '+sqlstr;End;如:sqlstr:='f001'+'='+'20'; 别人定义的这个函数,我如何调用? 线程中使用Synchronize同步Frame数据出错 小问题,顺便散分! 一个关于得到IP地址的小问题! TabControl 和 PageControl的简单使用 重分酬谢 高分求助!!!!!!!!!!!!! IPersistStreamInit 不能应用于 框架集 关于数据库查询结果显示问题??? listview调用数据库的文件路径显示图标的问题 delphi clientdataset filter问题 第100次求助,不好意思,没分了,都给光了,问大家一个删除表的小问题 复杂报表怎么写到EXCEL中?
where column1=:a and column2=:b and column3=:c
where :a and :b and :c
我的参数是这样的,第一个是列,第二个是'='或'like',第三个是值.
比如 select * from bom_mstr
where bom_fxdm = 'f001'
上面的解答好象不行.
sqlstr: string;
begin
sqlstr:=参数1+参数2+参数3;
aq.sql.str:='select * from bom_mstr where '+sqlstr;End;
如:
sqlstr:='f001'+'='+'20';