用substr()
好象还有不少都忘了,你可以查一下帮助吗?

解决方案 »

  1.   

    在不同的数据库中的sql函数是不一样的。
    譬如:Oracle是substr,InterBase是substring(好像是,很久没用了)
    Access是Left、Right
      

  2.   

    Paradox:
            SQL.Add('select * from tabname1 where ');
            SQL.Add( substring(fieldname1 from 1 for 8)=''20020812'' );
      

  3.   

    在不同的数据库中的sql函数是不一样的。
    譬如:Oracle是substr,InterBase是substring(好像是,很久没用了)
    Access是Left、Right
      

  4.   

    select * from tabdept where fdno=stuff('0011',3,1,'')//查找fd='001'的记录
      

  5.   

    通常like,substring,format一同用
    在informix: like,length
    MS SQL/Postgres: like,len