select

 stuff(

    (select ', <' + name + '>'

    from sys.databases

    where database_id > 4

    order by name

    for xml path(''), type

    ).value('(./text())[1]','varchar(max)')

  , 1, 2, '') as namelist;

相关文章:

  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2021-05-29
  • 2021-04-06
  • 2022-12-23
  • 2021-12-16
  • 2021-07-11
猜你喜欢
  • 2021-07-14
  • 2021-10-30
  • 2021-09-15
  • 2022-12-23
  • 2022-03-11
  • 2021-08-04
相关资源
相似解决方案