aldero
SSC Rookie
Points: 48
More actions
October 2, 2003 at 2:50 am
#81218
Hi all,
Can someone help me with the syntax of converting a string to a numeric.
Thanks a lot in advance
Jeremy Kemp
SSCertifiable
Points: 6754
October 2, 2003 at 3:25 am
#476704
Have a look at CAST and CONVERT eg
declare @variable varchar(10)
set @variable = '123'
select cast(@variable as int)
Jeremy
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply