摘要: 创建:if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Class]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].[Class]GOCreate TABLE [dbo].[Class] ([Class_Id] [int] NOT NULL ,[Class_Name] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,[Parent_ID] [int] 阅读全文
posted @ 2010-01-04 22:20 曾祥展 阅读(5666) 评论(10) 推荐(3) 编辑
摘要: --生成测试数据createtable BOM(ID int,parentID int,sClassName varchar(10))insertinto BOM values(1,0,'1111' )insertinto BOM values(2,1,'1111_1' )insertinto BOM values(3,2,'1111-1-1' )insertinto BOM values(4,3,'1111-1-1-1') insertinto BOM values(5,1,'1111-2' )go--创建用户定 阅读全文
posted @ 2010-01-04 21:07 曾祥展 阅读(814) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Web; u... 阅读全文
posted @ 2010-01-04 11:37 曾祥展 阅读(3153) 评论(0) 推荐(1) 编辑