大概想 这样 select 班级为 class from s_class 但这样写 编译不过去
5 个解决方案
#1
select '班级为' + class as class from s_class
#2
select '班级为' + class from s_class
#3
select '班级为' + ltrim(class) as class from s_class
#4
select '班级为'+ class from s_class
#5
class为数字类型的话必须转换才能拼接
叶子哥哥的++
#1
select '班级为' + class as class from s_class
#2
select '班级为' + class from s_class
#3
select '班级为' + ltrim(class) as class from s_class
#4
select '班级为'+ class from s_class
#5
class为数字类型的话必须转换才能拼接
叶子哥哥的++