# P_dbquery
## Syntax:
@dbquery(**{sql}**, **{targetArray}**)
## Use Case:
Executes a SQL SELECT query against the character's local SQLite database and populates an array with the results.
The resulting array will have rows matching the database rows, and columns matching the queried columns. Returns the number of rows returned.
## Arguments:
- **{sql}**        : The raw SQL SELECT statement.
- **{targetArray}**: The name of the local array to populate.
## Examples:
1. **/var {count} {@dbquery(SELECT * FROM logs, dbResults)}**
## See Also:
@dbexecute
