SELECT
         CONCAT('[',
              GROUP_CONCAT(
                   CONCAT('{"id":"',STRUCTURE_ID,'"'),',',
                   CONCAT('"pId":"',parent_id,'"'),
                   CONCAT(',"name":"',STRUCTURE_NAME),'"',
                   CONCAT(',"structure_code":"',structure_code),'"}')

,']')
    AS json FROM t_resource_structure where STRUCTURE_ID BETWEEN 1110 and 1111

 

相关文章:

  • 2021-04-15
  • 2022-12-23
  • 2022-02-07
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案