G
gk
http://java.sun.com/j2se/1.4.2/docs/api/java/sql/PreparedStatement.html
"...An object that represents a precompiled SQL statement.
A SQL statement is precompiled and stored in a PreparedStatement
object. This object can then be used to efficiently execute this
statement multiple times....."
what these means ?
what does it mean by "precompiled SQL statement" ? who compiles ? JDK
or DBMS ?
ok, say i am writing ..
PreparedStatement pstmt = con.prepareStatement("UPDATE EMPLOYEES
SET SALARY = ? WHERE ID = ?");
pstmt.setBigDecimal(1, 153833.00)
pstmt.setInt(2, 110592)
Now, what does "precompiled SQL statement" means here ?
could you please explain the meaning of this word "precompiled" ?
we know java code is compiled by JDK and SQL query is compiled by DBMS
..
I dont understand whats the meaning of "precompiled" here and how it is
related in this context ?
"...An object that represents a precompiled SQL statement.
A SQL statement is precompiled and stored in a PreparedStatement
object. This object can then be used to efficiently execute this
statement multiple times....."
what these means ?
what does it mean by "precompiled SQL statement" ? who compiles ? JDK
or DBMS ?
ok, say i am writing ..
PreparedStatement pstmt = con.prepareStatement("UPDATE EMPLOYEES
SET SALARY = ? WHERE ID = ?");
pstmt.setBigDecimal(1, 153833.00)
pstmt.setInt(2, 110592)
Now, what does "precompiled SQL statement" means here ?
could you please explain the meaning of this word "precompiled" ?
we know java code is compiled by JDK and SQL query is compiled by DBMS
..
I dont understand whats the meaning of "precompiled" here and how it is
related in this context ?