MySQL Question.
#5

Quote:
Originally Posted by Tayab
Посмотреть сообщение
What I think might work is when you add a vehicle in the database, get the maximum value of the id and then subtract it my 1. Again, I am not 100% sure if that might do it because you might have set your id value to AUTO_INCREMENT.
Hmm that's the right idea, that has made me think. I think what it is, is...

I save the deleted vehicle's ID, then when the next vehicle is created it uses that?
Reply


Messages In This Thread
MySQL Question. - by Dokins - 09.12.2013, 23:10
Re: MySQL Question. - by Jefff - 09.12.2013, 23:23
Re: MySQL Question. - by Dokins - 09.12.2013, 23:27
Re: MySQL Question. - by Tayab - 09.12.2013, 23:42
Re: MySQL Question. - by Dokins - 09.12.2013, 23:49
Re: MySQL Question. - by Tayab - 09.12.2013, 23:54

Forum Jump:


Users browsing this thread: 1 Guest(s)