select COUNT(w.OID) count
from ${tableName} w
join PL_CODE_ALLCODE c on w.OID = c.CREATECODEOID
where c.CREATECODEBTM = #{btm}
and c.CODERULEOID = #{oid}
and w.LASTR = '1'
and w.LASTV = '1'
${inSql}
select COUNT(*) FROM ${tableName}
${inSql}
${inSql}
${inSql}
${inSql}
insert into ${tableName}
(
${key}
)
select
#{value}
from dual
delete from ${tableName} where oid in (${oids})
BEGIN
update ${tableName}
${key} = #{value}
where oid = #{columnMap.oid}
;
END;
select max(revisionSeq) + 1 revisionSeq,
max(RevisionValue) + 1 revisionVal,
max(VersionSeq) + 1 VersionSeq,
max(VersionValue) + 1 VersionVal
from ${tableName}
where nameoid = #{nameoid}
select max(revisionSeq) revisionSeq,
max(RevisionValue) revisionVal,
max(VersionSeq) VersionSeq,
max(VersionValue) VersionVal
from ${tableName}
where nameoid = #{nameoid}