Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Alter table table1 add index col1_idx (column1);
table1 には多くの行があり、そのすべてが column1 に null 以外の値を持っていますが、上記のクエリは "0 Rows AFfected" と表示しています。これはなぜですか?
これは、行を変更する更新ステートメントとは対照的に、クエリが行に直接影響を与えないためです。それは(非常に、非常に、非常に基本的に)列の保存方法とソート方法を変更するだけです。