Home Forums SQL Server 2016 SQL Server 2016 - Development and T-SQL IF ROW COUNT = 0 GO TO END RE: IF ROW COUNT = 0 GO TO END
Phil Parkin
SSC Guru
Points: 247210
More actions
July 11, 2018 at 6:56 am
#1997116
if not exists (select 1 from TableA) return;Should exit the proc at that point, if zero rows are found.
if not exists (select 1 from TableA) return;