SQL server中等同于mysql 中limit的语句
作者: 寒凉 日期: 2010-06-18 14:28
SELECT *
FROM (SELECT TOP 20 *
FROM (SELECT TOP 20 *
FROM iwear_cube
WHERE deleted = 0
ORDER BY createdate DESC) DERIVEDTBL
ORDER BY createdate) DERIVEDTBL
ORDER BY createdate DESC
FROM (SELECT TOP 20 *
FROM (SELECT TOP 20 *
FROM iwear_cube
WHERE deleted = 0
ORDER BY createdate DESC) DERIVEDTBL
ORDER BY createdate) DERIVEDTBL
ORDER BY createdate DESC
评论: 0 |
引用: 0 |
阅读: 28
发表评论
订阅
上一篇
返回
下一篇
标签:



sql server中union all与union的排序 (2010-08-04 15:26)
[转]sql教程:查询数据库中重复记录的方法 (2010-05-18 15:52)