Scripting/Squirrel/Functions/SQLite/QuerySQL

From VC-MP Wiki

Jump to: navigation, search

This function executes a query to a local SQLite database. The function returns a pointer to the query result, or null if the query returns no data or it failed.

Syntax

sqliteQuery QuerySQL( sqliteDB database, string query )

Arguments

  • database - The pointer of a previously created/loaded database
  • query - The SQL query to be executed

Example

For usage example, check the general SQLite database example from the wiki tutorials.

Related Functions

Personal tools
squirrel scripting