[maxcd]
select MAX(stoku_cd +1 )
from m_tokui;

[existtok]
select 1 from m_tokui
where tok_cd = ':tok_cd'

