1. 首页
  2. 数据库
  3. 其它
  4. ASP 递归调用 已知节点查找根节点的函数

ASP 递归调用 已知节点查找根节点的函数

上传者: 2021-01-03 16:04:36上传 PDF文件 15.51KB 热度 32次
代码如下:Function getTreeRootId(pNodeId) getSQL = “select note_id,parent_id from [T_tree_demo] where note_id='”& pNodeId &”‘” Set getRs = db.Execute(getSQL) If Not getRs.eof Then If Trim(getRs(“parent_id”)) = “0” Then getTreeRootId = Trim(getRs(“note_id”)) Exit Function Else getTreeRootId = getTreeRootI
下载地址
用户评论