JDBC Pertanyaan dan Jawaban Wawancara
Question: How do you call a stored procedure from JDBC?Answer: The first step is to create a CallableStatement object. As with Statement an and PreparedStatement objects, this is done with an openConnection object. A CallableStatement object contains a call to a stored procedure. CallableStatement cs = con.prepareCall("{call SHOW_EMPLOYEES}"); ResultSet rs = cs.executeQuery(); |
Simpan untuk Revisi
Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.
Masuk untuk menyimpan bookmark, pertanyaan sulit, dan set revisi.
Apakah ini membantu? Ya Tidak
Most helpful rated by users:
- What is JDBC? Describe the steps needed to execute a SQL query using JDBC.
- What are the steps involved in establishing a JDBC connection?
- Is JDBC-ODBC bridge multi-threaded?
- Does the JDBC-ODBC Bridge support multiple concurrent open statements per connection?
- What are the different driver types available in JDBC?