MySQL IDs question
#2

example:
pawn Код:
mysql_query("SELECT MAX(vehicleid) FROM vehicles");
    mysql_store_result();
    new SQL[20];
    mysql_fetch_row_format(SQL, "|");
    new sqlid = strval(SQL);
    mysql_free_result();
    format(string, sizeof(string), "ALTER TABLE `vehicles` AUTO_INCREMENT =%i", sqlid);
    mysql_query(string);
Reply


Messages In This Thread
MySQL IDs question - by iTorran - 15.12.2011, 17:47
Re: MySQL IDs question - by Ricop522 - 15.12.2011, 17:49
Re: MySQL IDs question - by Sergei - 15.12.2011, 19:13
Re: MySQL IDs question - by DRIFT_HUNTER - 15.12.2011, 19:57
Re: MySQL IDs question - by Lorenc_ - 15.12.2011, 20:06
Re: MySQL IDs question - by XFlawless - 16.12.2011, 01:50

Forum Jump:


Users browsing this thread: 2 Guest(s)