看看web

  • 首页
  • 前端
    • vue
    • js
    • react
    • css
  • 后端
  • 杂记
large picture of the cover

thumbnail of the cover of the post

sql 切套递归查询当前用户所在公司下的数据

示例 WITH RECURSIVE org_hierarchy (ID, PARENT_ID, ORG_TYPE,ORG_NAME) AS ( -- 基础查询:找到当前用户的直接上级部门 SELECT ID, PARENT_ID, ORG_


site logo

Hi,Friend

  • 首页
  • 前端
    • vue
    • js
    • react
    • css
  • 后端
  • 杂记

© 2025 看看web

Powered by Halo • Crafted with by LIlGG

© 2025 看看web