Link to home
Start Free TrialLog in
Avatar of Bruce Gust
Bruce GustFlag for United States of America

asked on

Zero default value in MySQL Database

I recently learned that when attempting to input a large number into a database field that's set up to accommodate only a certain number of digits, the number that is entered is 2147483647.

Is there another anomaly that occurs that results in a zero being entered into the database? I'm not talking about a zero being in the data that's being inserted. Rather, I'm talking about something that chokes the system resulting a default "0" being entered into the field.

Thoughts?
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Uhh, please post the CREATE TABLE script and tell us which column you're concerned about, thanks.
SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial