Glenn Sanchez

Glenn Sanchez

  • NA
  • 83
  • 34.5k

How do I Query Dynamically

Mar 29 2012 1:25 AM
How can I query on a table given as parameter? I just want to check if a record exists.

Example:

 String query = "Select * from " + tableName + "t where t.ID='" + fieldvalue + "'";

Regards

Answers (4)