mysql 求最小值/最大值 用到min()和max()函数。(请注意,MIN和MAX函数会忽略NULL值) select min(sal) as min_sal , max(sal) as max_sal from emp;