sql -- 如何解决 select in 中的项过多的问题

2022-07-31,,,

如果 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

《sql -- 如何解决 select in 中的项过多的问题.doc》

下载本文的Word格式文档,以方便收藏与打印。