如图 :根据查询VehicleType='20100706154707609' 这个字段  但是我现在还想要查询出这个字段为空的数据VehicleType  这条SQL语句该怎么写

解决方案 »

  1.   

    在加个where条件
    where VehicleType is null
      

  2.   

    select * from tab
    where VehicleType='20100706154707609'
    or len(VehicleType)=0
      

  3.   

    where VehicleType='20100706154707609' or VehicleType is null
      

  4.   

    select * from tb where VehicleType = '20100706154707609' or VehicleType is null
      

  5.   

    忘记说了  我前面还有一个条件Brand='20100613140108531'在根据VehicleType='20100706154707609' 这个字段 但是我现在还想要查询出这个字段为空的数据VehicleType 这条SQL语句该怎么写
      

  6.   


    select * from tablename where VehicleType = '20100706154707609' or VehicleType is null
      

  7.   

    select * from tb where Brand='20100613140108531' and (VehicleType = '20100706154707609' or VehicleType is null)
      

  8.   

    select * from tablename where Brand='20100613140108531' and (VehicleType = '20100706154707609' or VehicleType is null)
      

  9.   

    select * from tb where Brand='20100613140108531' and 
    (VehicleType = '20100706154707609' or VehicleType is null)
      

  10.   

    where VehicleType='20100706154707609' or VehicleType is null