|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster 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 us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Mar 2003
Location: Very small penis
Posts: 5,809
|
MySQL question
Let's say I have a table with an auto_increment field called "id"..
This table got 5 rows.. where "id" goes from 1-5.. Now I delete row 4 and 5.. The next row I insert will get "id" = 6... How do I get it do let the next "id" to start at 4 which is the highest available number? (Don't ask why I need that |
|
|
|
|
|
#2 |
|
Disruptive Innovator
Industry Role:
Join Date: Sep 2003
Location: Vegas
Posts: 4,230
|
I use navicat.. you can edit anything in your table manually.
but I'd like to know how to automate this because that is annoying when you delete records
__________________
C:\Code\ C:\Code\Run\ |
|
|
|
|
|
#3 | |
|
Confirmed User
Join Date: Jun 2007
Location: :: PUNCH ::
Posts: 1,260
|
Quote:
|
|
|
|
|
|
|
#4 |
|
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,231
|
i think 'OPTIMIZE' does that. google it, im not positive
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Mar 2003
Location: Very small penis
Posts: 5,809
|
Hmm... actually think I heard about that some years ago... will investigate that
|
|
|
|
|
|
#6 |
|
Confirmed User
Join Date: Apr 2002
Location: Houston
Posts: 5,651
|
why even use the auto increment feature then? just use your own id #'s
|
|
|
|
|
|
#7 |
|
Confirmed User
Join Date: Mar 2003
Location: Very small penis
Posts: 5,809
|
Yeah, that was mine conclusion too... changing it right now.. (Thanks though)
|
|
|
|