----------------------请教高手,是关于建一个简单的树的----------------(在线等)

btseecom 2006-02-21 01:45:49
高手们帮看看,小弟搞了好久了.谢...

如何建这个树啊?

+产品分类
-(循环列出表Type中字段Tname的不同数据)
-....
+增加方式
-(循环列出表Add中字段Aname的不同数据)
-....
+使用部门
-(循环列出表Dept中字段Dname的不同数据)
-....
+使用情况
-(循环列出表Uses中字段Uname的不同数据)
-....
+存放地点
-(循环列出表localtion中字段Lname的不同数据)
-....




...全文
60 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
-狙击手- 2006-02-21
  • 打赏
  • 举报
回复
可以了,现公布答案:

select '资产类别' tag,Bname name from bigclass
union all
select '增减方式' tag,Fname name from FromTo
union all
select '使用部门' tag,Dname name from Depart
union all
select '使用情况' tag,Status name from Equipment group by Status
union all
select '存放地点' tag,Lname name from location
-----------
没看出来是树
-狙击手- 2006-02-21
  • 打赏
  • 举报
回复
部件爆炸
btseecom 2006-02-21
  • 打赏
  • 举报
回复
可以了,现公布答案:

select '资产类别' tag,Bname name from bigclass
union all
select '增减方式' tag,Fname name from FromTo
union all
select '使用部门' tag,Dname name from Depart
union all
select '使用情况' tag,Status name from Equipment group by Status
union all
select '存放地点' tag,Lname name from location

22,210

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧