precompile « JDBC « Java Database Q&A

Home
Java Database Q&A
1.Blob
2.cassandra
3.column
4.Connection
5.Cursor
6.dao
7.Data Type
8.Database
9.Database Product
10.DataSource
11.Date
12.db2
13.derby
14.Development
15.Driver
16.Exception
17.file
18.hadoop
19.hbase
20.hsqldb
21.ibatis
22.JDBC
23.memcached
24.mongodb
25.MS Access
26.mysql
27.ODBC
28.Operation
29.oracle
30.postgresql
31.Record
32.result
33.Resultset
34.Schema
35.SQL
36.sqlite
37.SQLserver
38.Statement
39.stored procedure
40.sybase
41.Table
42.Transaction
43.Trigger
Java Database Q&A » JDBC » precompile 

1. pre-compile and prepared statement    coderanch.com

All SQL statements that are sent to the database whether through JDBC or any other mechanism always go through 2 stages: i) Prepare - Check that the SQL syntax is valid and work out an execution plan for SQL statement (i.e. sort out which indexes, tables etc are going to be used) ii) Execute - Actually apply the SQL statement to ...

2. PreparedStatement Pre-compiled Once?    coderanch.com

3. does OracleDriver really precompile a PreparedStatement?    coderanch.com

The driver does not compile any sql. The database does. Your query will get compiled at first use. The advantage of PreparedStatement is, that your database knows you're using the same query the second time, even when you use different values for your parameters. If you use a Statement, Oracle will compile the query again if you change the where clause ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.