Mysql之获取一个表的最大id到一个变量中

select @a:=MAX('字段名') AS '别名' from '表名 ';
select @a ;

猜你喜欢

转载自www.cnblogs.com/lrzb/p/11819842.html