ExecuteSQLCreateTable: 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">
bool createRegistryTable ( string table )
nil createRegistryTable ( string table )
</syntaxhighlight>  
</syntaxhighlight>  


Line 15: Line 15:


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


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

Revision as of 18:33, 22 September 2006

This function creates a table in the registry if it does not already exist. This function should be used in the initialization step of any script that uses SQL registry functions to write to a table, because that table may not exist yet if the script is run for the first time.

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

CREATE <table> IF NOT EXISTS

Syntax

nil createRegistryTable ( string table )

Required Arguments

  • table: The table you want to create.

Returns

The function doesn't return anything.

See Also