如果 select in 中包含的项过多,会严重影响程序的性能,解决方法为:
注意 'admin,test'
为一个完整的字符串,而不是 'admin','test'
select account,id,password from test t1
join
( SELECT unnest(string_to_array('admin,test', ',')) as name) t2
on t1.account = t2
本文地址:https://blog.csdn.net/weixin_38645718/article/details/107674597