db_rename_table

bool db_rename_table (string currentname, string newname)

Renames a table.

Arguments

currentname is the name of the table that will be renamed.
newname is the name that will be given to the table.

Result

The function returns TRUE if successful or FALSE otherwise.

Example

// Rename table

db_rename_table("mytable","mynewtable");


See also

Database functions
Database support