求教:这种根据选择字段,条件符,和查询值,怎么效果怎么实现
动态字段_参数查询.rar
弄个存储过程,把参数传进去分析合成语句,查询
条件符只有等于一个值吗
https://help.fanruan.com/finereport10.0/doc-view-3966.html
https://help.fanruan.com/finereport10.0/doc-view-165.html
参考这两个文档,一个动态列一个动态条件
select * from table_name where ${if(len(查询字段input) == 0,"1=1",表单编号input)} ${if(len(条件符input) == 0,"",条件符input)} ${if(len(条件值input) == 0,"",条件值input)}
参考一下