MYSQL > Autoincrement-Problem
#5

There is a built-in function in MySQL for this. Try something like:

pawn Код:
SELECT MAX(column_name) + 1 FROM `table_name`
Reply


Messages In This Thread
MYSQL > Autoincrement-Problem - by Meisternuke - 14.06.2015, 02:14
Re: MYSQL > Autoincrement-Problem - by [KHK]Khalid - 14.06.2015, 02:18
Re: MYSQL > Autoincrement-Problem - by Meisternuke - 14.06.2015, 02:19
Re: MYSQL > Autoincrement-Problem - by [KHK]Khalid - 14.06.2015, 02:21
Re: MYSQL > Autoincrement-Problem - by Emmet_ - 14.06.2015, 02:26
Re: MYSQL > Autoincrement-Problem - by Meisternuke - 14.06.2015, 02:41
Re: MYSQL > Autoincrement-Problem - by Emmet_ - 14.06.2015, 04:43
Re: MYSQL > Autoincrement-Problem - by Konstantinos - 14.06.2015, 10:30

Forum Jump:


Users browsing this thread: 1 Guest(s)