postgres 查询之where条件,字段的值是列表中的任意一个

select * from stock_move_line where id = any('{5447,5448}');
  • any 这种写法一般多用于函数中,比如将某个字段的值拆分为列表
  • 感觉这种语法完全可以用in来代替.
posted @ 2020-06-29 19:26  那时一个人  阅读(2070)  评论(0编辑  收藏  举报