EXPORT_TABLES
Generates a SQL script that can be used to recreate a logical schema—schemas, tables, constraints, and views—on another cluster. EXPORT_TABLES only exports objects to which the user has access.
The SQL script conforms to the following requirements:
- Only includes objects to which the user has access.
- Orders CREATE statements according to object dependencies so they can be recreated in the correct sequence. For example, if a table references a named sequence, a CREATE SEQUENCE statement precedes the CREATE TABLE statement. Similarly, a table's CREATE ACCESS POLICY statement follows the table's CREATE TABLE statement.
Syntax
EXPORT_TABLES( ['[destination]' [, '[scope]']] )
If you omit all parameters, EXPORT_CATALOG exports to standard output all tables to which you have access.
Parameters
destination |
Specifies where to send output, one of the following:
|
scope |
Specifies one or more tables to export, as follows: [database.]schema[.table][,...]
|
Privileges
None
Example
See Exporting Tables.