5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【MySQL】select時のデフォ順序

5
Posted at

以下の認識で合ってるか詳しい人教えてください。きっかけは素朴な疑問。

プライマリキーがある場合とない場合で違う。

①プライマリーキーがある場合
プライマリーキーでソートされる。

参考:MySQLはデフォルトで索引構成表

②プライマリーキーがない場合
取得時のデータ量などにより異なる。

参考:実体験

5
3
1

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
5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?