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) 文章导航 Struts2配置RESULT中TYPE的参数说明 hibernate:通用DAO+动态生成HQL语句