表名: d_main 字段名:brid,brxm,ai_brbh(brbh=brid)定义的是number型
控件:sle_brid ,sle_brxm pb_2(查询) , dw_patient
条件:按brid,brxm查询
代码总是报错,向大家请教这段查询的代码该怎么写,谢谢~
------解决方案--------------------
dw_patient对应的数据窗口的SQL写成:
- SQL code
select brid, brxm from d_main where (brid = :abrid or :abrid is null ) and (brxm = :abrxm or :abrxm is null)