JDatabaseQuery::setQuery
Allows a direct query to be provided to the database driver's setQuery() method, but still allow queries to have bounded variables.
Usage: $query->setQuery('select * from #__users');
Signature
public function setQuery(mixed
$sql )
Parameters
-
$sql
- An SQL Query
Returns
- JDatabaseQuery
- Returns this object to allow chaining.