Dieg's world
.net framework, SQL & other technical stuff blog
Monday, August 31, 2009
CAST and CONVERT (Transact-SQL) - Truncating and Rounding Results
Here's some "puzzle" for you dudes .
Before you opening SQL Management Studio and pasting
from clipboard , answer -
what is the result for lines below?
DECLARE @D INT
SET @D = 12345
SELECT CAST(@D AS VARCHAR(2))
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)