write a query to select name from one table which has id,name and salary from another table which has id, sal where the salary is the second maximum
3 9451While in CallableStatament using in the oracle my procedure is return no.of columns so in java how can i retrivbe the data and i wnat to view all data which is reetrive from my procedure
ADP,
2062Hi friends, In JDBC 4 drivers are there among this which driver is best and why it is best.Which driver is most commonly used in web applications.
6 9292I have written a program to connect to database using odbc.Can this Application run on any Platform????
2 4512Give me some example for getting connection from connection pooling in JBoss Server. Is Connection Pool default in Server or we have to create it? Who can create Connection Pool in a Team. How it will be accessed by the developer code?
TCS,
1 4795java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDr iver? I get this error at run time.I used oracle10G. I set CLASS PATH:C:\oraclexe\app\oracle\product\10.2.0 \server\jdbc\lib\ojdbc14.jar; I write JDBC PROGRAM like import java.sql.*; class Example { public static void main(String args[]) { try { Class.forName ("oracle.jdbc.driver.OracleDriver"); System.out.println("Driver Loaded"); Connection con=DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:xe","system","salmas"); System.out.println("Driver Connected"); Statement st=con.createStatement(); ResultSet rs=st.executeQuery("select * from emp"); while(rs.next()) { System.out.println(rs.getInt(1)); System.out.println(rs.getString(2)); System.out.println(rs.getString(3)); } st.close(); con.close(); } catch(Exception e) { System.out.println(e); } finally { System.out.println("it's finally block executed"); } } }
CTS,
6 24867
Which is better jpa or jdbc?
What is jdbc connection?
How to check jdbc connection in linux?
How to achieve JDBC Connection Pooling using JDBC DataSource and JNDI in Apache Tomcat Server?
How can I determine the isolation levels supported by my DBMS?
How many types of JDBC Drivers are present and what are they?
Explain about the Try Block?
How can we move the cursor in a scrollable result set?
What is the full form of jdbc?
What is difference between java.util.Date and java.sql.Date?
What are the methods which can verify the cursor particular position?
Why do we need jdbc?
How to invoke Oracle Stored Procedure with Database Objects as IN/OUT?
What are the 4 types of jdbc drivers?
Why should we close database connections in java?