Hey everyone,
How can I create a table with a subquery that contains the structre of the query and the data? In other DBMS systems, like Teradata, I would use something like "with data" in place of "definition only". Is this possible in DB2? Thanks in advance.
The below code only creates an empty table, which is expected with the definition only parameter. I am having no success finding the include data patameter.
create table test as (select * from other table) definition only;
How can I create a table with a subquery that contains the structre of the query and the data? In other DBMS systems, like Teradata, I would use something like "with data" in place of "definition only". Is this possible in DB2? Thanks in advance.
The below code only creates an empty table, which is expected with the definition only parameter. I am having no success finding the include data patameter.
create table test as (select * from other table) definition only;