#T-SQL, 15 bytes
T-SQL, 15 bytes
a:PRINT 0GOTO a 6 years and 10 pages of answers, and no SQL versions yet.
Notes:
PRINTis 1 byte less than aSELECT.- A label with a goto is 1 byte shorter than the shortest
WHILEstatement:WHILE 1=1PRINT 1(you can't just doWHILE 1in SQL) - Depending on the version of SQL Management Studio, the "messages" pane (which displays the result of
PRINTstatements), might not immediately refresh; this is a client-side UI issue only.