+ 3

How to change the property of any string into numeric property?

Example :"Learn" is a string of varchar type but how to change the string property into numeric property and the value will be same as it is.

31st May 2017, 11:20 PM
AASIF IQUBAL
AASIF IQUBAL - avatar
3 Respostas
+ 2
you have to use the query TO NUM ("Learn")
3rd Jun 2017, 2:26 PM
EMAMUL HASAN
EMAMUL HASAN - avatar
+ 2
You can't convert 'Learn' to a numeric value. You'll get a type conversion error. However, if you have a valid number as a varchar, you can convert it. SELECT CONVERT(INT,'125'); SELECT CAST('125' AS INT);
1st Jun 2017, 1:21 AM
Ryan Martin
Ryan Martin - avatar
0
how do you do this
25th Jun 2017, 7:58 PM
lily