Jump to content

restart


vegnadragon

Recommended Posts

OK, what i want to do is insert some tables to my database, however the purpose of the database is to keep creating and deleting some information, i'll set a ID for a key and auto_increment, but how can i restart and tell mysql to restart back from one once it has reached its limit?

Link to comment
Share on other sites

What is this "limit" you're planning on imposing on it? Date, number of rows, some other constraint?

Part of the appeal of databases is the ability to record information over time, and hence track how records change, or differ when new ones are added. Why would you want to delete information?

Link to comment
Share on other sites

Let's say i have a table with a ID (which contain primary key and auto_increment) and the column is set to have a int of 1 space for example. So the last value would be 9, so after 9 i wanted to return to id 1 and keep going until it reached 9 again, i never went over the value limit so i don't know what happens.

Link to comment
Share on other sites

i am making a mini web game, and it is heavily influenced by time, i want to have a set amount of slots to implement some values that i can access once the time is gone. I also want to delete the values once the time is reached and insert another value.

You can deal with time-based constraints differently.... 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.