Page 1 of 1

? parameter in SQL statement

PostPosted: Wed Jun 12, 2013 3:09 am
by renuka123
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();
}