You can use
SELECT AUTO_INCREMENT
FROM information_schema.tables
WHERE table_name="table_name"
AND table_schema = DATABASE( ) ;
or if you do not wish to use information_schema you can use this
SHOW TABLE STATUS LIKE 'table_name'
More Related Contents:
- how to delete data from table A besides the customer service and director data in table B?
- Error related to only_full_group_by when executing a query in MySql
- SQL split values to multiple rows
- Get records with max value for each group of grouped SQL results
- How to populate a table with a range of dates?
- MYSQL OR vs IN performance
- ERROR 1452: Cannot add or update a child row: a foreign key constraint fails
- MySQL Cannot Add Foreign Key Constraint
- Grouping into interval of 5 minutes within a time range
- Convert timestamp to date in MySQL query
- Update a column value, replacing part of a string
- MySQL: View with Subquery in the FROM Clause Limitation
- MySQL/MariaDB – order by inside subquery
- View’s SELECT contains a subquery in the FROM clause
- Can MySQL replace multiple characters?
- OUTPUT Clause in MySQL
- Using ORDER BY and GROUP BY together
- Sorting by date & time in descending order?
- Difference between these two joining table approaches?
- MySQL Pivot Table Column Data as Rows
- updating columns with a sequence number mysql
- MySQL, Concatenate two columns
- Select a column with a keyword name
- MySQL Stored Procedures not working with SELECT (basic question)
- ERROR 1148: The used command is not allowed with this MySQL version
- Use Composite Primary Key as Foreign Key
- MySQL Select minimum/maximum among two (or more) given values
- MySQL OPTIMIZE all tables?
- Strip last two characters of a column in MySQL
- Deleting a row based on the max value