0

有什么办法,我们可以在多选下拉菜单中使用 AND 条件吗?我的意思是,如果下拉列表包含 3 个值,例如

  • 第一个选项
  • 第二个选项
  • 第三个选项

我必须做一个 AND 条件。我们使用的查询是

select some_column from table where option in :p_option哪个是逻辑 OR,如何将其更改为 AND 条件?就像是

select some_column from table where option =first_option and second_option and so on?? 由于参数来自报告,因此可以有任意数量的选择。那么,我如何动态地做到这一点?

4

0 回答 0