MCQs > IT & Programming > JDBC > You want to execute the following query string, using the connection named 'con': String query = 'SELECT * FROM CUSTOMER'; What should the syntax be?

JDBC MCQs

You want to execute the following query string, using the connection named "con":

String query = "SELECT * FROM CUSTOMER";

What should the syntax be?



Answer

Correct Answer: Statement stmt=con.createStatement(); <br>ResultSet rs=stmt.executeQuery(query);

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JDBC Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JDBC Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it