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");