SQL中_数据类型转换

cast(Rooms as varchar(2))

 

例如:

SELECT cast(Rooms as varchar(2))+'室'+cast(Halls as varchar(2))+'厅'+cast(Toilets as varchar(2))+'卫 '+StylePro
       as SBStyle
FROM F_USR_SBSearchResult

posted on 2008-10-18 13:57  王培  阅读(163)  评论(0编辑  收藏  举报

导航