-
Name as Productname 把一個名字的命名換成另一個名字查看全部
-
用as來定義id名字 select a,b,c,isnull(color,'') as color123 from... 用了isnull之后,id名字就沒有了,用as來定義新的名字查看全部
-
select a,b,c,isnull(id名,''),isnull(id,'') from... 把null值為空的單元格不顯示查看全部
-
select a,b,c isnull(color,'') from... 把null值給選出來不顯示查看全部
-
Select a,b,c... from ... order by 2 就是按select 后面跟的第二個排序,就是按b排序查看全部
-
order by id名 desc order by id名 desc,nameid查看全部
-
asc正序排列查看全部
-
desc倒數排列查看全部
-
實際工作中盡量少用* 比如可以用select top100 from原則前100行的查看全部
-
*所有,全部查看全部
-
Orderby按什么排序 比如按id排序查看全部
-
Having針對集合運算做一個限制條件查看全部
-
Groupby集合運算時 比如取平均數查看全部
-
Where對行和列進行限制條件 比如personid>10查看全部
-
最基本的sql語句查看全部
舉報
0/150
提交
取消