1、排序(ORDER BY 列 PRICE | DESC)
升ASC 降 DESC
2、with ties
example:
select top5 with ties title,type,price from title order by price DESC.表示可能在ORDER by 子句的后面的列有相同值一并列出(仅限于要最后行相同值),如果是中间相同的列也会一同列出。
1、排序(ORDER BY 列 PRICE | DESC)
升ASC 降 DESC
2、with ties
example:
select top5 with ties title,type,price from title order by price DESC.表示可能在ORDER by 子句的后面的列有相同值一并列出(仅限于要最后行相同值),如果是中间相同的列也会一同列出。