NigelShi
with t as(select * from category where categoryid = 1
  union all select category.* from t, category where t.categoryid = category.parentid
  ) select * from t

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-08-14
  • 2021-08-27
猜你喜欢
  • 2021-12-26
  • 2021-11-13
  • 2022-02-13
  • 2022-12-23
相关资源
相似解决方案