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 can we maintain the integrity of a database by using jdbc?
What is the function of setautocommit?
What is jdbc odbc driver?
Explain about DSN?
How to insert and delete a row programmatically? (new feature in JDBC 2.0)
What are devices?
What do you mean by jdbc batch processing and what are the advantages of using jdbc batch processing?
Why do we need a jdbcrowset like wrapper around resultset?
What are the methods which can verify the cursor particular position?
Are all the required JDBC drivers to establish connectivity to my database part of the JDK?
What does setautocommit do?
What is jdbc odbc in java?
How do I stop nullpointerexception?
What is jdbc driver for sql server?
How can I manage special characters when I execute an insert query?