The main feature of a PreparedStatement object is that, unlike a Statement object, it is given a SQL statement when it is created.
The advantage to this is that in most cases, this SQL statement is sent to the DBMS right away, where it is compiled.
As a result, the PreparedStatement object contains not just a SQL statement, but a SQL statement that has been precompiled.
This means that when the PreparedStatement is executed, the DBMS can just run the PreparedStatement SQL statement without having to compile it first.
Although you can use PreparedStatement objects for SQL statements with no parameters, you probably use them most often for SQL statements that take parameters.
The advantage of using SQL statements that take parameters is that you can use the same statement and supply it with different values each time you execute it.
Source : https://docs.oracle.com/javase/tutori...
Follow me @
🌐 http://www.raviroza.com/
✍️ https://raviroza.wordpress.com/
✍️ https://raviroza.blogspot.com/
✍️ / ravi.oza.it
✍️ / raviozait
📹 / ravioza101
LinkedIN : www.linkedin.com/in/ravi-oza
#RaviROza #JavaEE #Gujarati
In questa pagina del sito puoi guardare il video online JDBC Prepared Statement Example (Gujarati) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Ravi R. Oza 01 agosto 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 269 volte e gli è piaciuto 5 spettatori. Buona visione!