SELECT S_ID id,MAX(TIME_) TIME_ FROM a WHERE AND SF_ID ='1132' group by SF_ID原因,当不满足if的时候,sql后边有一个空where,报错