我想用right函数但不能确定切割的长度

解决方案 »

  1.   


    rst.field!...,=mid(rst.field!...,3)
      

  2.   

    如果每条记录的前两个字符都是一样的,可以用
    n=len(字段)
    变量=cint(right(字段,n-2))
      

  3.   

    还可以用replace(字段,"T=","")
      

  4.   

    提示提示 sql语句怎么写?
      

  5.   


    replace(字段,"T=","") 
    马上试试
      

  6.   

    update 表 set 字段=replace(字段,"T=","")
    对吗?
      

  7.   

    update 表 set 字段=cint(replace(字段变量,"T=","")) where 字段名='"&字段变量&"'字段变量最好先用select语句查出来,再变换 
      

  8.   

    我试了,但提示表中replace 函数没有定义?
      

  9.   

    用的什么数据库?
    我的SqlServer7.0可以,对的
      

  10.   

    update messages set 字段= right(字段,len(字段)-2) where left(字段,2)='T='"
    虽然苯了点,可还是解决了:)
      

  11.   

    在VB里还是在STORAGE PROCEEDURE里?
      

  12.   

    dim str1 as string
    dim n1 as integer
    str1=sc.Fields(0)
    n1=cint(right(str1,instr(1,str1,"=")-1))