在sql server数据库里面要把一个字符串转换为整数

  • Post author:
  • Post category:其他



convert(int, ‘1232 ‘)

–or

cast( ‘1232 ‘   as   int)


select sum(cast(


分数


as int))


分数


from


考核


转载于:https://www.cnblogs.com/maxblog/archive/2010/07/23/1783995.html