数据库通用自增长列

select case a 
       when 0 then 1
       else (select max(uuid) from t_user)+1 end as b from (select count(uuid) as a from t_user)
原文地址:https://www.cnblogs.com/BrightMoon/p/3581010.html