08 2014 档案
摘要:CREATE TABLE [dbo].[GoodsCategories]( [ID] [int] NOT NULL, [ClassName] [nvarchar](20) NOT NULL, [ParentID] [int] NOT NULL, [Depth] [int] NOT NULL, [Ro...
阅读全文
摘要:CREATE PROCEDURE [dbo].[GoodsCategories_Insert]@parentId int, --父类Id@className nvarchar(50) --分类名称ASBEGIN SET NOCOUNT ON; --不返回计数(表示受 Transact-SQL 语句影...
阅读全文
摘要:alter FUNCTION f_Cid(@ID int)RETURNS @t_Level TABLE(ID int,Level int)ASBEGINDECLARE @Level intSET @Level=1INSERT @t_Level SELECT @ID,@LevelWHILE @@ROW...
阅读全文
摘要:declare @time datetimedeclare @ms intset @time= getdate()select ID,name from (select row_number() over(order by ID) as rowNum,* from dbo.testb) as t ...
阅读全文