Check out example codes for "postgresql select fast check no rows". It will help you in understanding the concepts better.

Code Example 1

select exists (select 1 from mytable)

Learn ReactJs, React Native from akashmittal.com