system.db.runPrepQuery(query, args, database, tx)
String query - A query (typically a SELECT) to run as a prepared statement with placeholders (?) denoting where the arguments go.
Object args - A list of arguments. Will be used in order to match each placeholder (?) found in the query.
String database - The name of the database connection to execute against. If omitted or "", the project's default database connection will be used.
String tx - A transaction identifier. If omitted, the query will be executed in its own transaction.
PyDataSet - The results of the query as a PyDataSet.
Gateway, Vision Client, Perspective Session