2006年8月17日

创建层次查询

摘要: select level, lpad(' ', 2 * level - 1, '--') || t.deptname, t.deptid from lbi_department tstart with t.deptid = 1connect by prior t.deptid = t.parentid 阅读全文
posted @ 2006-08-17 13:39 老狐狸 阅读(169) 评论(0) 推荐(0)