postgres in operator with comma separated values

Hello geeks! In this article I have shared the details about “postgres in operator with comma separated values”. Okay, let’s move on to the article.

postgres in operator with comma separated values

select *
from DUALS
where num in (select unnest (string_to_array('1,2', ',')::integer[]))

Final Thoughts

I hope this post helps you to know about “postgres in operator with comma separated values”. If you have any doubts regarding this post please let us know via the comment section. Share this tutorial with your friends and family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment