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

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

解决办法:

使用:  cast ,

修改之后:

 select '<a href="/'+cast(a.Id as varchar(8000))  from dbo.ticles  a; 
原文地址:https://www.cnblogs.com/youmingkuang/p/10321487.html