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.
私のテーブルはこれです:
クラス 5 5 6 6 6 7 8 8 8 9 10
重複するクラス値を取得せずにクラス値 5、6、7、8、9、10 を取得することは可能ですか?
SELECT DISTINCT CLASS FROM MYTABLE;
DISTINCT を使用してそれを実現できます。
構文:
SELECT DISTINCT column_name FROM table_name;
上記の構文に基づいて、クエリは次のようになります
SELECT DISTINCT CLASS FROM 'table_name'