TreeView数据绑定的方法
时间:2010-08-30 来源:天亮说晚安
CREATE TABLE [dbo].[QuHua] (
[ID] [int] IDENTITY (1, 1) NOT NULL ,--自增的标记列
[NAME] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,--行政区划的名称
[ParentID] [int] NOT NULL --行政区划的上一级区划ID,最高级区划的上一级默认为0
) ON [PRIMARY]
GO
---插入测试数据
Insert Into dbo.QuHua (NAME,ParentID) Values ('北京',0)
Insert Into dbo.QuHua (NAME,ParentID) Values ('山东',0)
Insert Into dbo.QuHua (NAME,ParentID) Values ('河北',0)
Insert Into dbo.QuHua (NAME,ParentID) Values ('海淀',1)
Insert Into dbo.QuHua (NAME,ParentID) Values ('中关村',4)
Insert Into dbo.QuHua (NAME,ParentID) Values ('济宁',2)
Insert Into dbo.QuHua (NAME,ParentID) Values ('曲阜',6)
Insert Into dbo.QuHua (NAME,ParentID) Values ('济南',2)













































相关阅读 更多 +