how can connection with oracle10g with java
Answer Posted / rajshri
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection
("jdbc:oracle:thin:@localhost:1521:XE", "system", "system");
//(system,system is username and passward of oracle 10g)
Statement st=con.createStatement();
String sql="(here your sql statement must be of select
pattern)";
ResultSet rs=st.executeQuery(sql);
while(rs.next())
{
AND SO ON...
| Is This Answer Correct ? | 33 Yes | 4 No |
Post New Answer View All Answers
How many jdbc driver types are there?
What is drivermanager in jdbc?
Why do we need jdbc api?
When does the result for an sql statement return null?
Result set’s index starts with 0 or 1?
What is while rs next ())?
How can I get information about foreign keys used in a table?
What is in terms of jdbc a datasource?
Why do we need a jdbcrowset like wrapper around resultset?
How does a file store compare with a jdbc store?
What are the components of jdbc?
What is the reason why we need a jdbcrowset like the wrapper around resultset?
What are common JDBC Exceptions?
Which database is used for java?
How can we retrieve the file in the oracle database?