We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DOCS • API • Database API
Programmatically perform a RENAME TABLE operation.
RENAME TABLE
See related ➞ ALTER TABLE
database.renameTable( fromName: string, toName: string, options?: AlterTableOptions ): Promise<AlterTableResult>;
fromName
toName
options?
AlterTableOptions
AlterTableResult
ALTER TABLE
Rename a table:
await database.renameTable( 'table_1', 'table_1_new', { desc: 'Alter description' } );