--没错啊,有什么问题?
select * from table1 where substring(username,7,3)='abc'

解决方案 »

  1.   


        select * from table1 where substring([username],7,3)='abc'
      

  2.   

    语句没错,substring会把一个汉字也当一个字符
      

  3.   

    没错!
    use dbname
    select * from table1 where substring(username,7,3)='abc'
      

  4.   

    我用的是ACCESS,是不是不支持这个表达式?
      

  5.   

    access不支持的以后问问题之前一定要把测试环境先讲一下
      

  6.   

    为什么不支持呢?不是SQL语句吗ACCESS不支持SQL吗
      

  7.   

    用MID,我有自己解决了!!!!!
      

  8.   

    细节问题~`  解决了就好看来仔细观察~也是重要的,,,access