# P_dbexecute
## Syntax:
@dbexecute(**{sql}**)
## Use Case:
Executes a non-query SQL statement (e.g. INSERT, UPDATE, DELETE) against the character's local SQLite database.
The database file is located in the local Data directory. Returns the number of rows affected.
## Arguments:
- **{sql}**: The raw SQL statement to execute.
## Examples:
1. **/var {rows} {@dbexecute(INSERT INTO logs (entry) VALUES ('test'))}**
## See Also:
@dbquery
