CAST与REPLACE

1.将某种数据类型的表达式显式转换为另一种数据类型。CAST 和 CONVERT 提供相似的功能。
   语法:CAST ( expression AS data_type
   例子:cast(replace(Code,'Guide','')  as int )
    code是表的某一列: code
                    Guide2
                    Guide9
                    Guide10
                    Guide6

posted on 2006-08-03 11:53  challenge  阅读(432)  评论(0编辑  收藏  举报

导航