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?
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 1,137 • Replies: 0
No top replies

 
 

Related Topics

 
  1. Forums
  2. » java EJB
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/25/2024 at 04:08:32