Aze*_*eem 10 sql t-sql sql-server
我需要在sql server中编写这个查询:
IF isFloat(@value) = 1
BEGIN
PRINT 'this is float number'
END
ELSE
BEGIN
PRINT 'this is integer number'
END
Run Code Online (Sandbox Code Playgroud)
请帮帮我,谢谢.
Mar*_*ith 40
declare @value float = 1
IF FLOOR(@value) <> CEILING(@value)
BEGIN
PRINT 'this is float number'
END
ELSE
BEGIN
PRINT 'this is integer number'
END
Run Code Online (Sandbox Code Playgroud)