Home Forums Article Discussions Article Discussions by Author Discuss content posted by Mark Tillman The Percent Sign in T-SQL RE: The Percent Sign in T-SQL
SanDroid
SSChampion
Points: 10068
More actions
February 28, 2011 at 9:08 am
#1292391
mtassin (2/28/2011)I got this right but...SELECT 0%0givesMsg 8134, Level 16, State 1, Line 1Divide by zero error encountered.So it seems you can use it to divide 0 by 0 and get an error.
mtassin (2/28/2011)
SELECT 0%0
gives
Msg 8134, Level 16, State 1, Line 1
Divide by zero error encountered.
So it seems you can use it to divide 0 by 0 and get an error.
Seriously? 😛