select user_id from deliver_record_detail where coalesce(max_salary,0) - coalesce(min_salary,0) > 2
注意:处理空值数据coalesce()标准SQL,infull()方言MYSQL
select user_id from deliver_record_detail where coalesce(max_salary,0) - coalesce(min_salary,0) > 2
注意:处理空值数据coalesce()标准SQL,infull()方言MYSQL