| | |
how to record 3-digit zeros
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Aug 2009
Posts: 31
Reputation:
Solved Threads: 0
Okay idk if it's possible but I want one of my fields to have 000 as a default value and to maintain this value whenever called for. Like if I use PHP to run a query that asks for that field I want it to return "000". I'm doing this coz I'm playing with version records here.
OK so there's this thing called Zerofill, but I want it a little different. I want this field to be able to store INTEGER(5), but default value "000", a three-digit zeros. So if user do not enter any number, it will be "000", but user MAY enter up to 5 digits....
OK so there's this thing called Zerofill, but I want it a little different. I want this field to be able to store INTEGER(5), but default value "000", a three-digit zeros. So if user do not enter any number, it will be "000", but user MAY enter up to 5 digits....
Last edited by AdventDeo; Oct 6th, 2009 at 4:44 am.
![]() |
Similar Threads
- How Do I Show A Selected Specific Record (ASP)
- Add a new record to access database in VB 2005 (VB.NET)
- PHP MySQL date question. (PHP)
- invalid digit in octal constant (C++)
- Microsoft Access Field Format ??? (Windows Software)
- mixing floats and ints...(don't ban me please for being such a noob) (C++)
- Need help with an assignment that is due tomorrow plzzzz (C++)
- assignment help [fstream, on modifying a record in a file] (C++)
- Zeros added-Word/Excel Merge & Separate Outlooks? (Windows Software)
Other Threads in the MySQL Forum
- Previous Thread: retrieve the last record???
- Next Thread: How to create multiple tables
| Thread Tools | Search this Thread |
agplv3 alfresco amazon api artisticlicense aws bizspark breathalyzer camparingtocolumns cmg communityjournalism contentmanagement contractors copyright count court crm database design developer development distinct drupal dui ec2 email enterprise eudora facebook form foss gartner gnu government gpl greenit groklaw hiring hyperic images innerjoins insert ip joebrockmeier join journalism keyword keywords kickfire law legal license licensing linux maintenance managing mariadb matchingcolumns metron micromanage microsoft microsoftexchange mindtouch montywidenius mozilla multiple music mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlindex mysqlinternalqueries mysqlquery mysqlsearch news open-xchange opendatabasealliance opengovernment opensource oracle penelope php priceupdating query referencedesign reorderingcolumns resultset saas select sharepoint simpledb sourcecode spotify sql sugarcrm syntax techsupport thunderbird transparency virtualization






