Hi,
I like to know which one from the below is better in performance when we check for the existence of rows.
IF EXISTS(SELECT COUNT(1) FROM myTable)
OR
IF EXISTS(SELECT 1 FROM myTable)
Please let me know the efficient way.
Thanks,
Ram
My Blog
Hi,
I like to know which one from the below is better in performance when we check for the existence of rows.
IF EXISTS(SELECT COUNT(1) FROM myTable)
OR
IF EXISTS(SELECT 1 FROM myTable)
Please let me know the efficient way.
Thanks,
Ram
My Blog