数据库通用自增长列

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)

 

posted @ 2014-03-04 19:48  Bright Moon ‘ s Blog  阅读(152)  评论(0编辑  收藏  举报