select '<a href="/'+a.id +'" title="'+ a.title +'">'+a.Title+'</a>'
     from dbo.ticles a;

数据类型 varchar 和 uniqueidentifier 在 add 运算符中不兼容

 

解决办法:

使用:  cast ,

修改之后:

 select '<a href="/'+cast(a.Id as varchar(8000))  from dbo.ticles  a; 

 

相关文章:

  • 2022-12-23
  • 2021-06-02
  • 2022-12-23
  • 2021-10-14
  • 2021-05-13
  • 2022-01-10
  • 2022-12-23
  • 2021-12-17
猜你喜欢
  • 2022-12-23
  • 2021-12-01
  • 2021-12-18
  • 2022-12-23
  • 2021-10-01
相关资源
相似解决方案