select distinct Sex,Age from mydb.class -如果select distinct包含多個column,則依照所有column的組合來決定資料列的唯一性 And : 所有條件都要成立才會回傳true。 Or : 只要有一個條件成立就回傳true。 Not : 反轉 ...
SELECT:選擇要顯示的欄位。 FROM:指定資料來源表格。 WHERE:條件篩選。 ORDER BY:排序結果。 SELECT name, age FROM users WHERE age > 18 ORDER BY age DESC; 查詢 users 表格中年齡大於 18 的用戶,並按年齡降序 ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results