mysql变量使用
select @cnt_before := count(1) as cnt from api_log ;
select @cnt_before as 'cnt_刷新前',count(1) as 'cnt_刷新后' from api_log limit 10;
select @cnt_before := count(1) as cnt from api_log ;
select @cnt_before as 'cnt_刷新前',count(1) as 'cnt_刷新后' from api_log limit 10;