code to insert values/rows into oracle database from a java
swing textfield when a button is pressed(using
preparedstatements)
No Answer is Posted For this Question
Be the First to Post Answer
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 Answers Bosch, HireCraft, Infosys,
Hi my doubt is that preparedStatement is a interface means which has no implemenation.plz go thru the code below String sql = "SELECT * FROM movies WHERE year_made = ?"; prest = con.prepareStatement(sql); prest.setInt(1,2002); ResultSet rs1 = prest.executeQuery(); Now setInt and executeQuery how it works since it is interface it does not have implementation how it works, how executeQuery returns result from database as executequery method has no implementation even in Statement interface.
4 Answers Cybermate, Hexaware,
How do find debugging problems related to JDBC API?
What are the ddl statements?
callable is interface or class ?
How many types of jdbc drivers are there?
What are the different types of JDBC drivers?
What is the use of prepared statement?Ans:used to execute pre compiled statement...so the question is when that precompiled statement will be execute or comiple?................
What do you understand by DDL and DML statements?
What is jdbc connection?
What is the role of the jdbc drivermanager class?
What is JDBC DataSource and what are it’s benefits?