Simply query the mySQL-server for the next value in your table like this:
SELECT AUTO_INCREMENT FROM information_schema.TABLES WHERE TABLE_SCHEMA='<DB_NAME>' AND TABLE_NAME='<TABLE_NAME>
Replace <DB_NAME> and <TABLE_NAME> with the appropriate DB-schema and table name on your own mySQL server.
No comments:
Post a Comment