Quando si chiama una stored procedure senza argomenti e nessun output c'è qualche vantaggio nell'usare un CallableStatement su un normale Statement o PreparedStatement?CallableStatement vs Statement
5
A
risposta
5
CallableStatement
consente di utilizzare una sintassi JDBC generica per le procedure di chiamata piuttosto che una specifica per Database.
Purtroppo, non abbiamo fatto che per Oracle in uno dei progetti cui ho lavorato, per cui tutte le nostre chiamate di procedura aspetto qualcosa di simile:
String query = "begin package.sp_Procedure(?, ?); end;";
Problemi correlati
- 1. come stampare Statement (CallableStatement) in Java?
- 2. Funzione database VS Case Statement
- 3. SQL - CASE STATEMENT - WHEN statement AND statement
- 4. statement statement con due variabili alla volta
- 5. SQL Case statement VS Union Tutte le prestazioni
- 6. Considerazioni sulla preparazione, sulla callableStatement e sulla prestazione
- 7. If statement in C++
- 8. while else statement? PHP
- 9. Jinja2 If Statement
- 10. fortran SAVE statement
- 11. if statement intero
- 12. DBNull if statement
- 13. SQlite concat select statement
- 14. DB2 CASE Statement
- 15. C# lock statement performance
- 16. Need Help- Switch statement
- 17. PHP PDO + Prepare Statement
- 18. using statement with connection.open
- 19. Java Switch Statement
- 20. IF statement non funziona
- 21. C# using statement
- 22. bizzarro C statement
- 23. Weird for loop statement
- 24. sqlplus print running statement
- 25. Resharper Auto Complete Statement
- 26. prepared statement in VB.NET
- 27. Mysqli insert statement
- 28. Nesting 'IDisposable's in a single' using 'statement
- 29. Serialization and the Yield statement
- 30. switch statement in C/Objective