Re: how to duplicate data for few times by SQL command in PG

Поиск
Список
Период
Сортировка
От David Johnston
Тема Re: how to duplicate data for few times by SQL command in PG
Дата
Msg-id CAKFQuwZ-8zHAqa0YtVCu-+r1KsDhjXg_3M6mJ2GaauP2t5C1bw@mail.gmail.com
обсуждение исходный текст
Список pgsql-general
On Thursday, January 22, 2015, tsunghan hsieh <tsunghan.hsieh@gmail.com> wrote:
Hi

I have a table which just has one column as following in Original Table. I wanna duplicate all of data for few times and with same order as following in New Table. Is there anyone who can help me? Thanks

Han

Original Table
23
45
65
22

New Table
23
23
23
45
45
45
65
65
65
65
22
22
22
22

Tables do not have order. 

Cross join.

David J.

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: partitioning query planner almost always scans all tables
Следующее
От: Tom Lane
Дата:
Сообщение: Re: temporary tables are logged somehow?