select max(id) into next_id from bg;
select id from bg;
select next_id from bg;
id的输出是一排的0
next_id的输出也是0
select max(id) into next_id from bg;
select id from bg;
select next_id from bg;
id的输出是一排的0
next_id的输出也是0
不是很清楚MySQL会不会有这个限制,sqlsever里面数据表前面最好加上数据的库及其前缀