注:这是在ibator的sqlmap中应用的
<selectKey resultClass="integer" keyProperty="id">
select (case when max(id) is null then 1 else max(id)+1 end)
from TASK_PLAN
</selectKey>
注:这是在ibator的sqlmap中应用的
<selectKey resultClass="integer" keyProperty="id">
select (case when max(id) is null then 1 else max(id)+1 end)
from TASK_PLAN
</selectKey>