00013转成13是哪个函数哦

解决方案 »

  1.   

    cast('00013' as int)convert(int,'00013')
      

  2.   

    看你要什么类型的了 int就是 cast 
    字符串 就多了  substring、left ……
      

  3.   

     convert(int , '00013')
      

  4.   

    楼上试试个看看select LTRIM('00013'*1.0)
      

  5.   

    select 字段*1 from tb where isnumeric(字段)=1
      

  6.   

    select '00013'*1
    select cast('00013' as int)
    select convert(int,'00013')
      

  7.   


    select cast('00013' as int)
    select convert(int,'00013')
      

  8.   

    select cast('00013' as int)  union all 
    select convert(int,'00013')
    /*
    (无列名)
    13
    13
    */