在sql中空值有NULL 和''的形式当是NULL的时候用 IS NULL判断当是''的时候用 =''判断比如select * from table where enddate IS NULL;select * from table where str='';