ExecuteSQLDropTable: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
nil executeSQLDropTable ( string table )
bool executeSQLDropTable ( string table )
</syntaxhighlight>  
</syntaxhighlight>  


Line 15: Line 15:


===Returns===
===Returns===
The function doesn't return anything.
The function returns a ''boolean'' which is ''true'' on success, and ''false'' on failure.


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

Revision as of 16:16, 23 September 2006

This function drops a table in the registry. This function doesn't do anything when the table doesn't exist.

The executed SQL query is the following:

[sql]DROP TABLE IF EXISTS <table>

Syntax

bool executeSQLDropTable ( string table )

Required Arguments

  • table: The name of the table you want to drop.

Returns

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

See Also