原本想删除字段col列中所以数据的第一个字符,书写如下,但是执行出错,请高手赐教,如何正确书写,谢谢!
select left(col,2,len(col)-1) from table

解决方案 »

  1.   

    --查询:
    select left(col,len(col)-1) from table--更新
    update table set col=left(col,len(col)-1) 
      

  2.   

    select substring(col,1,1) from table
      

  3.   


    select stuff(col,1,1,'') from tb
      

  4.   


    select right(col,len(col)-1) from tb
      

  5.   


    select substring(col,2,len(col)-1) from tbselect right(col,len(col)-1) from tb
      

  6.   


    select substring(col,2,len(col)-1) from tbselect right(col,len(col)-1) from tb
      

  7.   


    select right(col,len(col)-1) from table