<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Vertica Documentation – Creating a table from other tables</title>
    <link>/en/admin/working-with-native-tables/creating-table-from-other-tables/</link>
    <description>Recent content in Creating a table from other tables on Vertica Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/admin/working-with-native-tables/creating-table-from-other-tables/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Admin: Replicating a table</title>
      <link>/en/admin/working-with-native-tables/creating-table-from-other-tables/replicating-table/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/working-with-native-tables/creating-table-from-other-tables/replicating-table/</guid>
      <description>
        
        
        &lt;p&gt;You can create a table from an existing one using 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/&#34;&gt;CREATE TABLE&lt;/a&gt;&lt;/code&gt; with the &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/#LikeClause&#34;&gt;&lt;code&gt;LIKE&lt;/code&gt; clause&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE TABLE [&lt;span class=&#34;code-variable&#34;&gt;schema.&lt;/span&gt;]&lt;span class=&#34;code-variable&#34;&gt;table-name &lt;/span&gt;LIKE [&lt;span class=&#34;code-variable&#34;&gt;schema.&lt;/span&gt;]&lt;span class=&#34;code-variable&#34;&gt;existing-table&lt;/span&gt;
   [ {INCLUDING | EXCLUDING} PROJECTIONS ]
   [ {INCLUDE | EXCLUDE} [SCHEMA] PRIVILEGES ]
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Creating a table with &lt;code&gt;LIKE&lt;/code&gt; replicates the source table definition and any &lt;a href=&#34;../../../../en/admin/managing-storage-locations/&#34;&gt;storage policy&lt;/a&gt; associated with it. It does not copy table data or expressions on columns.&lt;/p&gt;
&lt;p&gt;&lt;a name=&#34;Copying&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;copying-constraints&#34;&gt;Copying constraints&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;CREATE TABLE...LIKE&lt;/code&gt; copies all table constraints, with the following exceptions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Foreign key constraints.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Any column that obtains its values from a sequence, including &lt;a href=&#34;../../../../en/admin/working-with-native-tables/sequences/identity-sequences/&#34;&gt;IDENTITY&lt;/a&gt; columns. Vertica copies the column values into the new table, but removes the original constraint. For example, the following table definition sets an IDENTITY constraint on column &lt;code&gt;ID&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE TABLE public.Premium_Customer
(
    ID IDENTITY ,
    lname varchar(25),
    fname varchar(25),
    store_membership_card int
);
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following &lt;code&gt;CREATE TABLE...LIKE&lt;/code&gt; statement replicates this table as &lt;code&gt;All_Customers&lt;/code&gt;. Vertica removes the &lt;code&gt;IDENTITY&lt;/code&gt; constraint from &lt;code&gt;All_Customers.ID&lt;/code&gt;, changing it to an integer column with a &lt;code&gt;NOT NULL&lt;/code&gt; constraint:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE All_Customers like Premium_Customer;
CREATE TABLE
=&amp;gt; select export_tables(&amp;#39;&amp;#39;,&amp;#39;All_Customers&amp;#39;);
                   export_tables
---------------------------------------------------
CREATE TABLE public.All_Customers
(
    ID int NOT NULL,
    lname varchar(25),
    fname varchar(25),
    store_membership_card int
);

(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a name=&#34;Includin&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;including-projections&#34;&gt;Including projections&lt;/h2&gt;
&lt;p&gt;You can qualify the &lt;code&gt;LIKE&lt;/code&gt; clause with &lt;code&gt;INCLUDING PROJECTIONS&lt;/code&gt; or &lt;code&gt;EXCLUDING PROJECTIONS&lt;/code&gt;, which specify whether to copy projections from the source table:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;EXCLUDING PROJECTIONS&lt;/code&gt; (default): Do not copy projections from the source table.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;INCLUDING PROJECTIONS&lt;/code&gt;: Copy current projections from the source table. Vertica names the new projections according to Vertica &lt;a href=&#34;../../../../en/admin/projections/projection-naming/#Projecti&#34;&gt;naming conventions&lt;/a&gt;, to avoid name conflicts with existing objects.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;including-schema-privileges&#34;&gt;Including schema privileges&lt;/h2&gt;
&lt;p&gt;You can specify default inheritance of schema privileges for the new table:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;EXCLUDE [SCHEMA] PRIVILEGES&lt;/code&gt; (default) disables inheritance of privileges from the schema&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;INCLUDE [SCHEMA] PRIVILEGES&lt;/code&gt; grants the table the same privileges granted to its schema&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For more information see &lt;a href=&#34;../../../../en/admin/db-users-and-privileges/db-privileges/inherited-privileges/setting-privilege-inheritance-on-tables-and-views/&#34;&gt;Setting privilege inheritance on tables and views&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;restrictions&#34;&gt;Restrictions&lt;/h2&gt;
&lt;p&gt;The following restrictions apply to the source table:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;It cannot have out-of-date projections.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;It cannot be a temporary table.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;example&#34;&gt;Example&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create the table &lt;code&gt;states&lt;/code&gt;: &lt;br /&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;
=&amp;gt; CREATE TABLE states (
     state char(2) NOT NULL, bird varchar(20), tree varchar (20), tax float, stateDate char (20))
     PARTITION BY state;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Populate the table with data:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;INSERT INTO states VALUES (&amp;#39;MA&amp;#39;, &amp;#39;chickadee&amp;#39;, &amp;#39;american_elm&amp;#39;, 5.675, &amp;#39;07-04-1620&amp;#39;);
INSERT INTO states VALUES (&amp;#39;VT&amp;#39;, &amp;#39;Hermit_Thrasher&amp;#39;, &amp;#39;Sugar_Maple&amp;#39;, 6.0, &amp;#39;07-04-1610&amp;#39;);
INSERT INTO states VALUES (&amp;#39;NH&amp;#39;, &amp;#39;Purple_Finch&amp;#39;, &amp;#39;White_Birch&amp;#39;, 0, &amp;#39;07-04-1615&amp;#39;);
INSERT INTO states VALUES (&amp;#39;ME&amp;#39;, &amp;#39;Black_Cap_Chickadee&amp;#39;, &amp;#39;Pine_Tree&amp;#39;, 5, &amp;#39;07-04-1615&amp;#39;);
INSERT INTO states VALUES (&amp;#39;CT&amp;#39;, &amp;#39;American_Robin&amp;#39;, &amp;#39;White_Oak&amp;#39;, 6.35, &amp;#39;07-04-1618&amp;#39;);
INSERT INTO states VALUES (&amp;#39;RI&amp;#39;, &amp;#39;Rhode_Island_Red&amp;#39;, &amp;#39;Red_Maple&amp;#39;, 5, &amp;#39;07-04-1619&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;View the table contents:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM states;


 state |        bird         |     tree     |  tax  |      stateDate
-------+---------------------+--------------+-------+----------------------
 VT    | Hermit_Thrasher     | Sugar_Maple  |     6 | 07-04-1610
 CT    | American_Robin      | White_Oak    |  6.35 | 07-04-1618
 RI    | Rhode_Island_Red    | Red_Maple    |     5 | 07-04-1619
 MA    | chickadee           | american_elm | 5.675 | 07-04-1620
 NH    | Purple_Finch        | White_Birch  |     0 | 07-04-1615
 ME    | Black_Cap_Chickadee | Pine_Tree    |     5 | 07-04-1615
(6 rows
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a sample projection and refresh:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE PROJECTION states_p AS SELECT state FROM states;

=&amp;gt; SELECT START_REFRESH();
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a table like the &lt;code&gt;states&lt;/code&gt; table and include its projections:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE newstates LIKE states INCLUDING PROJECTIONS;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;View projections for the two tables. Vertica has copied projections from &lt;code&gt;states&lt;/code&gt; to &lt;code&gt;newstates&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; \dj
                                                      List of projections
            Schema             |                   Name                    |  Owner  |       Node       | Comment
-------------------------------+-------------------------------------------+---------+------------------+---------
 public                        | newstates_b0                              | dbadmin |                  |
 public                        | newstates_b1                              | dbadmin |                  |
 public                        | newstates_p_b0                            | dbadmin |                  |
 public                        | newstates_p_b1                            | dbadmin |                  |
 public                        | states_b0                                 | dbadmin |                  |
 public                        | states_b1                                 | dbadmin |                  |
 public                        | states_p_b0                               | dbadmin |                  |
 public                        | states_p_b1                               | dbadmin |                  |
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;View the table &lt;code&gt;newstates&lt;/code&gt;, which shows columns copied from &lt;code&gt;states&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;
=&amp;gt; SELECT * FROM newstates;


 state | bird | tree | tax | stateDate
-------+------+------+-----+-----------
(0 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;When you use the &lt;code&gt;CREATE TABLE...LIKE&lt;/code&gt; statement, storage policy objects associated with the table are also copied. Data added to the new table use the same labeled storage location as the source table, unless you change the storage policy. For more information, see &lt;a href=&#34;../../../../en/admin/managing-storage-locations/&#34;&gt;Working With Storage Locations&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/working-with-native-tables/creating-tables/&#34;&gt;Creating tables&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/working-with-native-tables/creating-temporary-tables/&#34;&gt;Creating temporary tables&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/data-load/working-with-external-data/creating-external-tables/&#34;&gt;Creating external tables&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/working-with-native-tables/creating-table-from-other-tables/creating-table-from-query/&#34;&gt;Creating a table from a query&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Creating a table from a query</title>
      <link>/en/admin/working-with-native-tables/creating-table-from-other-tables/creating-table-from-query/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/working-with-native-tables/creating-table-from-other-tables/creating-table-from-query/</guid>
      <description>
        
        
        &lt;p&gt;&lt;span class=&#34;sql&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/&#34;&gt;CREATE TABLE&lt;/a&gt;&lt;/span&gt; can specify an &lt;span class=&#34;sql&#34;&gt;AS&lt;/span&gt; clause to create a table from a query, as follows:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE [TEMPORARY] TABLE [&lt;span class=&#34;code-variable&#34;&gt;schema.&lt;/span&gt;]&lt;span class=&#34;code-variable&#34;&gt;table-name&lt;/span&gt;
    [ ( &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/column-name-list/&#34;&gt;column-name-list &lt;/a&gt;&lt;/span&gt;) ]
    [ {INCLUDE | EXCLUDE} [SCHEMA] PRIVILEGES ]
AS  [  /*+ LABEL */ ] [ AT &lt;span class=&#34;code-variable&#34;&gt;epoch&lt;/span&gt; ] &lt;span class=&#34;code-variable&#34;&gt;query &lt;/span&gt;[ ENCODED BY &lt;span class=&#34;code-variable&#34;&gt;column‑ref‑list&lt;/span&gt; ]
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Vertica creates a table from the query results and loads the result set into it. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE cust_basic_profile AS SELECT
     customer_key, customer_gender, customer_age, marital_status, annual_income, occupation
     FROM customer_dimension WHERE customer_age&amp;gt;18 AND customer_gender !=&amp;#39;&amp;#39;;
CREATE TABLE
=&amp;gt; SELECT customer_age, annual_income, occupation FROM cust_basic_profile
     WHERE customer_age &amp;gt; 23 ORDER BY customer_age;
 customer_age | annual_income |     occupation
--------------+---------------+--------------------
           24 |        469210 | Hairdresser
           24 |        140833 | Butler
           24 |        558867 | Lumberjack
           24 |        529117 | Mechanic
           24 |        322062 | Acrobat
           24 |        213734 | Writer
           ...
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;as-clause-options&#34;&gt;AS clause options&lt;/h2&gt;
&lt;p&gt;You can qualify an &lt;span class=&#34;sql&#34;&gt;AS&lt;/span&gt; clause with one or both of the following options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/language-elements/hints/label/&#34;&gt;LABEL&lt;/a&gt;&lt;/span&gt; hint that identifies a statement for profiling and debugging&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;AT &lt;em&gt;&lt;code&gt;epoch&lt;/code&gt;&lt;/em&gt;&lt;/span&gt; clause to specify that the query return historical data&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a name=&#34;Labeling&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&#34;labeling-the-as-clause&#34;&gt;Labeling the AS clause&lt;/h3&gt;
&lt;p&gt;You can embed a &lt;span class=&#34;sql&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/language-elements/hints/label/&#34;&gt;LABEL&lt;/a&gt;&lt;/span&gt; hint in an &lt;span class=&#34;sql&#34;&gt;AS&lt;/span&gt; clause in two places:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Immediately after the keyword &lt;span class=&#34;sql&#34;&gt;AS&lt;/span&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE TABLE myTable AS /*+LABEL myLabel*/...
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the &lt;span class=&#34;sql&#34;&gt;SELECT&lt;/span&gt; statement:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE TABLE myTable AS SELECT /*+LABEL myLabel*/
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If the &lt;span class=&#34;sql&#34;&gt;AS&lt;/span&gt; clause contains a &lt;span class=&#34;sql&#34;&gt;LABEL&lt;/span&gt; hint in both places, the first label has precedence.

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

Labels are invalid for external tables.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;a name=&#34;Loading&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&#34;loading-historical-data&#34;&gt;Loading historical data&lt;/h3&gt;
&lt;p&gt;You can qualify a &lt;span class=&#34;sql&#34;&gt;CREATE TABLE AS&lt;/span&gt; query with an &lt;span class=&#34;sql&#34;&gt;AT &lt;em&gt;&lt;code&gt;epoch&lt;/code&gt;&lt;/em&gt;&lt;/span&gt; clause, to specify that the query return historical data, where &lt;em&gt;&lt;code&gt;epoch&lt;/code&gt;&lt;/em&gt; is one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;EPOCH LATEST&lt;/span&gt;: Return data up to but not including the current epoch. The result set includes data from the latest committed DML transaction.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;EPOCH &lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;&lt;/span&gt;: Return data up to and including the &lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;-specified epoch.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;TIME &#39;&lt;em&gt;&lt;code&gt;timestamp&lt;/code&gt;&lt;/em&gt;&#39;&lt;/span&gt;: Return data from the &lt;em&gt;&lt;code&gt;timestamp&lt;/code&gt;&lt;/em&gt;-specified epoch.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

These options are ignored if used to query temporary or external tables.

&lt;/div&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../en/admin/failure-recovery/epochs/&#34;&gt;Epochs&lt;/a&gt; for additional information about how Vertica uses epochs.&lt;/p&gt;

&lt;p&gt;For details, see &lt;a href=&#34;../../../../en/data-analysis/queries/historical-queries/&#34;&gt;Historical queries&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;zero-width-column-handling&#34;&gt;Zero-width column handling&lt;/h2&gt;
&lt;p&gt;If the query returns a column with zero width, Vertica automatically converts it to a &lt;span class=&#34;sql&#34;&gt;VARCHAR(80)&lt;/span&gt; column. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE example AS SELECT &amp;#39;&amp;#39; AS X;
CREATE TABLE
=&amp;gt; SELECT EXPORT_TABLES (&amp;#39;&amp;#39;, &amp;#39;example&amp;#39;);
                       EXPORT_TABLES
----------------------------------------------------------
CREATE TEMPORARY TABLE public.example
(
    X varchar(80)
);
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;requirements-and-restrictions&#34;&gt;Requirements and restrictions&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;If you create a temporary table from a query, you must specify &lt;span class=&#34;sql&#34;&gt;ON COMMIT PRESERVE ROWS&lt;/span&gt; in order to load the result set into the table. Otherwise, Vertica creates an empty table.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If the query output has expressions other than simple columns, such as constants or functions, you must specify an alias for that expression, or list all columns in the column name list.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You cannot use &lt;span class=&#34;sql&#34;&gt;CREATE TABLE AS SELECT&lt;/span&gt; with a &lt;span class=&#34;sql&#34;&gt;SELECT&lt;/span&gt; that returns values of &lt;a href=&#34;../../../../en/sql-reference/data-types/complex-types/&#34;&gt;complex types&lt;/a&gt;. You can, however, use &lt;span class=&#34;sql&#34;&gt;CREATE TABLE LIKE&lt;/span&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/working-with-native-tables/creating-tables/&#34;&gt;Creating tables&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/working-with-native-tables/creating-temporary-tables/&#34;&gt;Creating temporary tables&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/data-load/working-with-external-data/creating-external-tables/&#34;&gt;Creating external tables&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/working-with-native-tables/creating-table-from-other-tables/replicating-table/&#34;&gt;Replicating a table&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
  </channel>
</rss>
