Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
hibernate(SessionFactory/NamedParameterJDBCTemplate) を使用して次の PL/SQL ブロックを実行するにはどうすればよいですか
declare a number := :a; b number := :b; begin insert into tab1 values(a,b); end; /
ストア プロシージャ コールを使用します。
Mysql プロシージャ:
CREATE PROCEDURE `mySProc`(param VARCHAR(20)) BEGIN ... END
Java 休止クエリ:
Query query = session.createSQLQuery( "CALL mySProc(:param)") .addEntity(MyClass.class) .setParameter("param", "7277");