![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Database Database problems or need to ask a question? maybe something to do with sql injections or a database software question. Database topics cover MySQL, PostgreSQL, Oracle, SQL Server or anything else related to databases. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| Can someone please tell me what the Auto_increment field in the SHOW TABLE STATUS output means? I checked the online documentation and couldn't get much help. Thanks for your help | |||
| Advertisements |
| | #2 | ||
| soup_or_power@yahoo.com wrote: > Can someone please tell me what the Auto_increment field in the SHOW > TABLE STATUS output means? I checked the online documentation and > couldn't get much help. Huh? How the hell have you searched? http://dev.mysql.com/doc/refman/5.0/...le-status.html Auto_increment The next AUTO_INCREMENT value. So: the value the next inserted row will get in it's auto_increment field. Grtz, -- Rik Wasmus | |||
| | #3 | ||
| It means that when no value is supplied for this field, a value is automatically inserted - at an increment of the preceding value. Try it yourself. Make a table like CREATE TABLE `test` ( `id` INT ( 5 ) NOT NULL AUTO_INCREMENT , `f_name` VARCHAR( 12 ) , `l_name` VARCHAR( 12 ) , PRIMARY KEY ( `id` ) ) ; Insert something like this into your table (where the first value in each INSERT statement represents the auto-incremented field) and see what you get: INSERT INTO table VALUES ('','John'.'Lennon'); INSERT INTO table VALUES ('','Paul'.'MacCartney'); INSERT INTO table VALUES ('','George'.'Harrison'); INSERT INTO table VALUES ('','Ringo'.'Starr'); | |||
| | #4 | ||
| It means that when no value is supplied for this field, a value is automatically inserted - at an increment of the preceding value. Try it yourself. Make a table like CREATE TABLE `test` ( `id` INT ( 5 ) NOT NULL AUTO_INCREMENT , `f_name` VARCHAR( 12 ) , `l_name` VARCHAR( 12 ) , PRIMARY KEY ( `id` ) ) ; Insert something like this into your table (where the first value in each INSERT statement represents the auto-incremented field) and see what you get: INSERT INTO table VALUES ('','John'.'Lennon'); INSERT INTO table VALUES ('','Paul'.'MacCartney'); INSERT INTO table VALUES ('','George'.'Harrison'); INSERT INTO table VALUES ('','Ringo'.'Starr'); | |||
| Featured Websites | ||||
|
![]() |
| Tags: autoincrement, show, status, table |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| online status indicator | Richard | Console Subjects | 0 | 06-26-2007 1:32 AM |
| [Maybe OT] Selling Alpine F1 Status System | ziomax | Car audio | 1 | 06-18-2007 11:47 AM |
| status images for web site. | jc | Graphics in general | 0 | 06-12-2007 12:24 AM |
| Delete from a table using entries in temp table | n00bie | Database | 2 | 06-10-2007 12:25 AM |
| Mk Clan Live Server Status | Whatcha | The Games | 0 | 10-15-2006 4:52 PM |
| Featured Websites | ||||
|