Hallo everyone,
as simple as the title, I wonder why this code doesnt work.
I have already created the table mySchema.test
The error:
It must be possible to insert table from a "with as table"?
Thank you everyone.
Regards,
Ratna
as simple as the title, I wonder why this code doesnt work.
Code:
WITH
myBasic AS
(
SELECT
test_column1,
test_column2
FROM
mySchema.myTable
FETCH
FIRST 1000 rows only)
insert into mySchema.test(test_column1, test_column2)
select * from myBasic;
The error:
Code:
Error Code: -104, SQL State: 42601] An unexpected token "mySchema" was found following "s only)
Thank you everyone.
Regards,
Ratna