select * from stock_move_line where id = any('{5447,5448}');
- any 这种写法一般多用于函数中,比如将某个字段的值拆分为列表
- 感觉这种语法完全可以用
in
来代替.
懂得,原来世界如此简单!
postgres 查询之where条件,字段的值是列表中的任意一个
阅读 74
2022-08-02
select * from stock_move_line where id = any('{5447,5448}');
in
来代替.懂得,原来世界如此简单!
相关推荐
精彩评论(0)