ExecuteSQLDelete: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 20: Line 20:
===Returns===
===Returns===
The function returns a ''boolean'' which is ''true'' on success, and ''false'' on failure.
The function returns a ''boolean'' which is ''true'' on success, and ''false'' on failure.
===Example===
This page does not currently have an example
<syntaxhighlight lang="lua">
Pending
</syntaxhighlight>


==See Also==
==See Also==
{{Registry_functions}}
{{Registry_functions}}

Revision as of 14:48, 26 August 2007

This function deletes any rows (from the database) that meet the specified conditions in the specified table.

The SQLite database contains globally stored data and can be used by scripts to store and retrieve data in a structured manner.

The executed SQL query is the following:

[sql]DELETE FROM <table> WHERE <conditions>

Syntax

bool executeSQLDelete ( string tableName, string conditions )

Required Arguments

  • tableName: The name of the table you want to modify.
  • conditions: The conditions that need to be met before a row is deleted.

Returns

The function returns a boolean which is true on success, and false on failure.

Example

This page does not currently have an example

Pending

See Also