Tool:SQL
結果集:儲存查詢結果的結果表
Select
Select Distinct 唯一不同
Where 地點條件 Select 列名稱 From 表名稱 Where 列 運算子 值
And 並且,兩個條件全部都成立 Select 列名稱 From 表名稱 Where 列A 運算子 值 And 列B 運算子 值
Or 或者,兩個條件有一個成立 Select 列名稱 From 表名稱 Where 列A 運算子 值 or 列B 運算子 值
Order By 結果集排序,asc升序 、desc降序 Select 列名稱 From 表名稱 Order By 列名稱
Insert Into
Select select column_NameA,column_NameB from table_Name [ 多列,逗號]
Select Distinct select distinct column_Name from table_Name
Where子句 select column_Name from table_Name where column_Name = value [value:文字值-單引號,數值-無引號]
And select column_Name from table_Name where column_Name = value and column_Name = value,
Or select column_Name from table_Name where column_Name = value or column_Name = value
And & Or &() select column_Name from table_Name
where (column_Name = value or column_Name = value) and column_Name = value
Order By select column_Name,column_Name from table_Name
order by column_Name asc,column_Name desc