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: 848 • Replies: 0
No top replies

 
 

Related Topics

 
  1. Forums
  2. » java EJB
Copyright © 2019 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 10/19/2019 at 04:22:12