数据库结构是id name father path1 aa 0 02 bb 1 1-13 cc 1 1-24 dd 1 1-35 ee 2 1-1-26 ff 0 07 gg 6 6-18 hh 6 6-2
我现在是用 递归查询来插入数据查到第一层 father = 0的 插入一层树 然后 搜第二次 这样
有没有更高效的方法来把数据库里的数据 插入到 treecontrol 里
求例子学习
sql语句中使用 orderby id,即可从数据库中顺序读入数据。