Empty statement in T-SQL

Viewed 20376

Is there an empty statement keyword in T-SQL in Sql Server 2005 or newer? Something like NULL statement in PL/SQL.

5 Answers
while 1 = 0 break

In function I can not use:

if 1 = 0 print ''
if 1 = 0 set nocount on
if 1 = 0 waitfor delay '00:00'
if 1 = 0 throw 50000, '', 10
if 1 = 0 select 1
if 1 = 0 return

Labels or variables cannot be declared twice.

Related