? parameter in SQL statement

? parameter in SQL statement

Postby renuka123 » Wed Jun 12, 2013 3:09 am

how is parameters and values binded in JDBC in following case

PreparedStatement pstmt = null;
try
{
String SQL = "Update Employee SET age = ? WHERE id = ?";
pstmt = conn.preparedStatment(SQL);
...
}
catch(SQLexception e)
{
}
finally
{
pstmt.close();
}
renuka123
 
Posts: 2
Joined: Mon May 13, 2013 2:17 pm

Return to JDBC

Who is online

Users browsing this forum: No registered users and 1 guest

cron