ExecuteSQLCreateTable

From Multi Theft Auto: Wiki
Revision as of 18:31, 22 September 2006 by IJs (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

bool createRegistryTable ( string table )

Required Arguments

  • table: The table you want to create.

Returns

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

See Also