Avatar of PHIL Sawyer
PHIL Sawyer
Flag for United Kingdom of Great Britain and Northern Ireland

asked on 

USING WITH CLAUSE AND CREATE TABLE

Hi
I want to create a table where I have used With clause but keep getting an error.
First of all - is it possible and if so then how.
For the sake of simplicity see below as my actual sql is long.

WITH T1 AS
( SELECT 'TEST' AS AA, 25 AS NUM FROM DUAL)

CREATE TABLE TEST_ AS

SELECT AA, NUM FROM T1
Oracle DatabaseSQL

Avatar of undefined
Last Comment
PHIL Sawyer

8/22/2022 - Mon