Skip to content

Instantly share code, notes, and snippets.

@CanOrhan
Created January 10, 2016 03:18
Show Gist options
  • Save CanOrhan/ca1a2dd60331b24a118c to your computer and use it in GitHub Desktop.
Save CanOrhan/ca1a2dd60331b24a118c to your computer and use it in GitHub Desktop.
public void runSqlCode(String paramString) {
runSqlCode(paramString, null);
}
public void runSqlCode(String paramString, String where) {
String sqlQuery = "select %s from " + paramString;
if(where != null) {
sqlQuery += " where " + where;
}
SQL.execute(sqlQuery);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment