select @a: = MAX ( 'field name') AS 'alias' from 'table';
SELECT @a;
Mysql get a table of maximum id to a variable
Guess you like
Origin www.cnblogs.com/lrzb/p/11819842.html
Recommended
Ranking