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
What are the different types of JDBC drivers?
What is xe in oracle jdbc url?
java based application for hospital management
Why we use while rs next ())?
How many jdbc driver types are there?
What is db client?
What are JDBC Best Practices?
What is jdbc architecture in java?
What happens if connection is not closed in jdbc?
What is jdbc resultsetmetadata interface?
What is JDBC Batch Processing and what are it’s benefits?
What is executeupdate in java?
Which is faster jdbc or odbc?
Why is odbc needed?
What is the feature of jdbc v4?