摘要: USE [Tmp]GOCREATE TABLE [dbo].[HolidayName]( [ID] [tinyint] NOT NULL, [Name] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL,CONSTRAINT [PK_HolidayName] PRIMARY KEY CLUSTERED ( [ID] ASC)WITH (PAD_IN... 阅读全文
posted @ 2009-07-24 13:40 yiyan21 阅读(359) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/gjahead/archive/2007/04/04/699842.html 阅读全文
posted @ 2014-11-28 17:23 yiyan21 阅读(904) 评论(0) 推荐(0) 编辑
摘要: --sql 2000select * from(select * ,number = (select count(*) from tb where id t.id) + 1 from table t) m where number = 你指定的数值.--sql 2005select * from(select * , number = row_number() over(order by id) from table ) m where number = 你指定的数值. 阅读全文
posted @ 2010-12-31 11:17 yiyan21 阅读(1543) 评论(0) 推荐(1) 编辑