游客发表

父子分类关系查询使用的SQL语句介绍

发帖时间:2025-11-05 06:57:49

父子分类关系查询使用的SQL语句介绍
复制 select a.iCode_ind,父分a.icode, casewhen b.iCode_ind isnullthen0else1endfrom TabA a outer apply (selecttop1 iCode_ind from TabA where icode_ind like a.icode_ind+%and icode_ind<>a.icode_ind) b 1.2.3.4.

    热门排行

    友情链接