Tuesday, July 9, 2013

ABS() in SQL returns the absolute value of the number it wraps.

DECLARE @i int;
SET @i = -2147483648;
SELECT ABS(@i);
GO

...is given as an example here where I assume 2147483648 would be returned.

No comments:

Post a Comment