Reply
Tue 1 Jun, 2010 12:31 pm
I have this code:
public ResultSet getAccounts() {
// Build the SQL query statement, embedding the AccountID variable
String strSQL = "SELECT AccountKey, AccountName, Balance from accounts " +
"WHERE UserKey = " + m_iUserID;
// Query the database
return dbMgr.executeQuery(strSQL);
If I want to pass the UserKey directly to the getAccounts method, how could I do so?