摘要: USE [MASTER]GOIF EXISTS (SELECT NAME FROM SYS.DATABASES WHERE NAME = N'EMPLOYEE TEST')DROP DATABASE [EMPLOYEE TEST]GOCREATE DATABASE [EMPLOYEE TEST]GOUSE [EMPLOYEE TEST]GOIF EXISTS (SELECT NAME FROM SYS.TABLES WHERE NAME = N'EMPLOYEE')DROP TABLE [EMPLOYEE]GOCREATE TABLE EMPLOYEE (EMP 阅读全文
posted @ 2012-06-02 10:22 苦逼面条 阅读(206) 评论(0) 推荐(0) 编辑
摘要: select * from( select OrderId, Freight, ROW_NUMBER() OVER(order by Freight) as row from Orders ) a where row between 20 and 30 ... 阅读全文
posted @ 2012-06-02 09:41 苦逼面条 阅读(148) 评论(0) 推荐(0) 编辑