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 is odbc. how is it related to sql cli?
How to use JDBC to connect Microsoft Access?
What is setautocommit in jdbc?
What are the considerations for deciding on transaction boundaries?
What are restrictions on triggers?
What is the difference between executing, executequery, executeupdate in jdbc?
How to check jdbc driver version in sql server?
What class.forname will do while loading drivers of jdbc?
What is isolation level? How to set it?
What is execute in java?
What is the feature of jdbc v4?
What is serialization and deserialization in java programming?
How to get the Database server details in java program?
What is JDBC PreparedStatement?
Why do we use jdbc in java?