LoginSignup
6
7

More than 5 years have passed since last update.

MySQLでAUTO_INCREMENTの値を確認する方法

Last updated at Posted at 2014-12-17

全件カウントすると死ぬようなデータを扱う場合に。
COUNT(*) クエリを投げる代わりにここを見ることで代用可能。

mysql> SHOW TABLE STATUS LIKE 'テーブル名';
6
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
7