sql查询显示出现括号

日期:2014-03-31 14:53:39 人气:1

sql查询显示出现括号

如果a,b是字符串类型的,直接这样写: select '('+a+')' as a,'('+b+')' as b from c 如果不是字符串类型,比如int型,这样写: select '('+cast(a as varchar)+')' as a,'('+cast(b as varchar)+')' as b from c
    A+
热门评论