mysql get free id
#1

pawn Code:
mysql_query("INSERT INTO `rofl`(`SomeID`, `Name`) VALUES (LAST_INSERT_ID() + 1, 'TestNAME')");
i want mysql to get a free spot in SomeID, if i do my code over here it retun this in table

SomeID = 1 | Name = TestNAME

so how to get free ID spot with mysql?
Reply


Messages In This Thread
mysql get free id - by Unknown123 - 07.12.2011, 19:54
Re: mysql get free id - by MdeRooy - 07.12.2011, 19:56
Re: mysql get free id - by Unknown123 - 07.12.2011, 20:00
Re: mysql get free id - by MdeRooy - 07.12.2011, 20:03
Re: mysql get free id - by Unknown123 - 07.12.2011, 20:09
Re: mysql get free id - by MdeRooy - 07.12.2011, 20:20
Re: mysql get free id - by [HiC]TheKiller - 07.12.2011, 20:22
Re: mysql get free id - by MdeRooy - 07.12.2011, 20:24

Forum Jump:


Users browsing this thread: 1 Guest(s)