Jump to content

auto increment


asmith

Recommended Posts

$sql = "create table aaa(id int NOT NULL AUTO_INCREMENT, username varchar (30),PRIMRY KEY (id))";

 

i created a table just like that , i added one user name , it gave the id , 1 .

then i deleted the username, and  do a select * from table, it said it is empty,

i inserted another username, it gave id ,2 !

can i make it to give the id 1 again ?

Link to comment
https://forums.phpfreaks.com/topic/78806-auto-increment/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.