谁知道ACCESS的SQL语法查询字段空值,和一个字符串在另一个字符串在另一个字符串中的SQL语法

解决方案 »

  1.   

    cbo_chn_oper.RowSource = "select distinct vchr_Clientoperater from AST_ClientInfo where int_ClientType=1 and (vchr_clientoperater<>'' or vchr_clientoperater is not null)"
      

  2.   

    strLimit = " where chr_ClientId like '%" & strClientId & "%' and vchr_ClientName like '%" & strClientName & _
                 "%' and vchr_ClientDep like  '%" & strClientDep & "%' and vchr_ClientOperater like '%" & strClientOper & "%' and" & strCompType
      

  3.   

    strLimit = " where chr_ClientId like '%" & strClientId & "%' and vchr_ClientName like '%" & strClientName & _
                 "%' and vchr_ClientDep like  '%" & strClientDep & "%' and vchr_ClientOperater like '%" & strClientOper & "%' and" & strCompType
      

  4.   

    : IORILI(眼镜@_@)    是字段值比字符串小   我要查姓名属于'张三李四王五'的所有用户资料在SQL SERVER
    中有CHARINDEX处理
      

  5.   

    ACCESS

    有没有类似ISNULL(FLD,'ABD')的语法
      

  6.   

    由isnull不过是boolean类型的,
    strLimit = " where chr_ClientId like '%" & strClientId & "%' 就能实现你的要求,只要chr_clientid字段中含有变量strclientid中的字符,就可以查出来。
    如果你想实现你的查询方法的话,恐怕是行不通的,必须分开
    select * from table where name='张三' or name='李四' or name='王五'