select min(core) from 表名 where core is not null;
http://blog.csdn.net/yang_734664103/article/details/17405933
IFNULL(min,0) AS min;
你升级下MySQL版本,新版本会调用max,min等函数的时候会指定忽略null