0
Can I insert numbers into varchar data type
11 Answers
+ 1
Yes you can
+ 1
thank you to all for help
+ 1
exe: while($myvar=$myvar1->fetch()){echo (double)$myvar['price'];} where price is à varchar column in you database containing thé pruce
+ 1
Yes you can, but you will not be able to perform any math towards them because they are considered words. In most cases an address has numbers in a varchar variable.
0
yes by writing nvarchar
0
who know char's mean
0
Yes you can, but it will turn them into strings, so you cannot do math on them without converting them into integers or floats.
0
yes, you will able to insert any character, number, special character too ..etc
0
writer characters like Alphabet
0
yes,you can but if you want to use them as numbers un a program you must do a cast according to à Numerical type of each varchar record from your table with thé correspondant column
0
thank you to all