adspace


How to write a program to bind string values in a preparedstatement?

Answer Posted / Sasa

To bind string values to a PreparedStatement in Java (used with WebLogic Server), follow these steps:n
1. Create a PreparedStatement object.
2. Use the `setString()` method to bind the string value to the appropriate parameter index.
3. Execute the query using `executeQuery()`.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category