1、不为空 Select * From table_name Where id<>'' Select * From table_name Where id!='' 2、为空 Select * From table_name Where id='' Select * From table_name Where ISNULL(id) 具体状况具体分析,若是字段是char和varchar型用 id=''能够;若是是int型用 ISNULL好些