现在的位置: 首页 > 综合 > 正文

SQl 语句整理

2013年06月16日 ⁄ 综合 ⁄ 共 564字 ⁄ 字号 评论关闭

1.select提取的每个结果前加上一序号列,从1开始,步长为 ...

select   (select   count(*)   from   blog A  where   A.id <=B.id) As UnID,* from   blog   B
 2.Groupby order by  top 的使用技巧

 

Code

抱歉!评论已关闭.