![]() |
|
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 | ||
| I'm sure I've seen a solution to this in the list somewhere but I'm not able to find it. I'd like to renumber my AUTO_INCREMENT field in one of my tables. Yes, I know, it shouldn't matter what that value is, but I'd still like to do it. Anyone recall how this can be done? -- Amer Neely Home of Spam Catcher W: www.softouch.on.ca E: trudge@softouch.on.ca Perl | MySQL | CGI programming for all data entry forms. "We make web sites work!" | |||
| | #2 | ||
| Amer Neely wrote: > I'm sure I've seen a solution to this in the list somewhere but I'm not > able to find it. > > I'd like to renumber my AUTO_INCREMENT field in one of my tables. Yes, I > know, it shouldn't matter what that value is, but I'd still like to do > it. Anyone recall how this can be done? Figured it out. create table custid select po,custid from po_custid; alter table custid add ID int unsigned not null auto_increment primary key; drop table po_custid; alter table custid rename as po_custid; -- Amer Neely Home of Spam Catcher W: www.softouch.on.ca E: trudge@softouch.on.ca Perl | MySQL | CGI programming for all data entry forms. "We make web sites work!" | |||
| Featured Websites | ||||
|
![]() |
| Tags: auto_increment, renumber, value |
| 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 |
| problem with auto_increment | Jaceq | Database | 1 | 06-10-2007 12:18 AM |
| paint by number | Husky | Graphics in general | 0 | 05-31-2007 6:39 PM |
| EBAY PHONE NUMBER | Single Michigan Guy | Ebay Technical Questions | 1 | 05-31-2007 11:48 AM |
| number increment - possible ? | urami_ | Graphics in general | 1 | 05-28-2007 7:47 PM |
| Featured Websites | ||||
|