insert into aa (id,name) values((select case when max(id) is null then 1 else max(id)+1 end from aa),'a');
本文共 159 字,大约阅读时间需要 1 分钟。
insert into aa (id,name) values((select case when max(id) is null then 1 else max(id)+1 end from aa),'a');
转载于:https://www.cnblogs.com/klj123wan/p/3534181.html