select '答案是:' + convert( varchar(8000), (select Answer from PaperQuestion where [id] = 1246))
as ttt
from PaperQuestion
where [id] = 1246
Answer 是text类型的
总是提示
服务器: 消息 279,级别 16,状态 3,行 1
在这一子查询或聚合表达式中,text、ntext 和 image 数据类型无效。
as ttt
from PaperQuestion
where [id] = 1246
Answer 是text类型的
总是提示
服务器: 消息 279,级别 16,状态 3,行 1
在这一子查询或聚合表达式中,text、ntext 和 image 数据类型无效。
as ttt
from PaperQuestion
where [id] = 1246
where [id] = 1246
as ttt
from PaperQuestion
where [id] = 1246
where [id] = 1246 楼主的这样就可以了,为什么还子查询呀