取得mysql中表里的第一行:

SELECT mg.* FROM MaxGCC mg ORDER BY mg.JOBID ASC limit 0, 1;

取得my中表里的最后一行:

SELECT mg.* FROM MaxGCC mg ORDER BY mg.JOBID desc limit 0, 1;