一. 1.两个参数都是int类型() 例子: 1 < select id="searchClassAllNum" resultType="int"> select count(*) from parkclass pc join parkclasstag pct on(pc.classtaglevel=pct.id) join parent p on(pc.parentid=p.id) where pc.parkid=#{0} and pct.id=#{
create or replace procedure getid(v_id out number)as v_sql varchar2(500); begin v_sql:='insert into test values(7,''jack'') returning id into :1' ; execute immediate v_sql returning into v_id; end;