#2
liucm2014-03-17 12:57
|
在pb DW 如何实现如下select * from table where ('a'='b' or fieldname='b')的查询呢?
简单点,就是如何实现select * from tablename where (1=:ls_con1 or fieldname=:ls_con2),
也就是当ls_con1=1是查询所有记录,当ls_con1<>1时查询满足fieldname=ls_con2的条件的记录