|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
||||
|
||||
|
I am having a problem with two columns on a table I created. One is a tiny int with the default set to 1 and the other is a small int with a default value of 49. But when I add the data to the tables it puts a "0" instead of the values I thought i set as default. I tried them both as not null, then null, then not again. I checked the MySqL documentation and some of the begginer tutorials and I still can't find what I(or the db) did wrong.
|
|
#2
|
|||
|
|||
|
When you created the table, did you inserted the numbers in single quotes? If yes, modify the columns and put them without quotes.
__________________
Regards, Ramiro Varandas Jr. |
|
#3
|
||||
|
||||
|
If I put single or double quotes around the number in PHP MyAdmin it makes the defualt calue 0.
__________________
CHornJr "One day I'll know what I am doing" ![]() My Blog Suanhacky Lodge #49 Rebel Squadrons |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > Problem with MySQL default value |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|