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.
だから私がこれを行うと:
SELECT DISTINCT column_1, column_2, MD5(rand()) FROM table
n 個の行を取得します。これは、正しい行数です。
そして、私がこれを行うと:
SELECT DISTINCT column_1, column_2, "whatever" FROM table
上記は、基本的にテーブルのすべての行であるn + mを返します。
ここで何が起きてるの?