Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

create table using the clause with as

CREATE TABLE t
AS 
WITH some_data AS ( 
   SELECT 1 as some_value 
   FROM dual

   UNION ALL 

   SELECT 2 
   FROM dual
) 
SELECT * 
FROM some_data
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #table #clause
ADD COMMENT
Topic
Name
4+5 =