ExecuteSQLDropTable: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (DropRegistryTable moved to ExecuteSQLDropTable)
No edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
This function drops an existing table in the registry.
This function drops a table in the registry. This function doesn't do anything when the table doesn't exist.


The actual SQL query that is executed will be the following:
The executed SQL query is the following:


<pre>DROP TABLE IF EXISTS <table></pre>
<syntaxhighlight lang="lua">[sql]DROP TABLE IF EXISTS <table></syntaxhighlight>


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
nil createRegistryTable ( string table )
nil executeSQLDropTable ( string table )
</syntaxhighlight>  
</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''table:''' The table you want to drop.
*'''table:''' The name of the table you want to drop.


===Returns===
===Returns===

Revision as of 15:10, 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

nil executeSQLDropTable ( string table )

Required Arguments

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

Returns

The function doesn't return anything.

See Also