Answer the question
In order to leave comments, you need to log in
How to make a temporary table with the same data?
Let's say there is this:
SELECT 'Economy';
produces:
?column?
----------
Economy
(1 row)
I would like to have not one row, but several, according to my desire. And yes, without creating an intermediate table.
Answer the question
In order to leave comments, you need to log in
small note #3: what the hell do you need a cross join for?SELECT 'Economy' FROM generate_series(1,10);
A small side note to DevMan 's answer :
SELECT
cols.*
FROM
(SELECT 'Economy'::character varying (25) economy) AS cols
CROSS JOIN
generate_series(1,10);
SELECT 'Economy'::character varying (25) economy
to not have ?column? , well, I set the explicit type.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question