Re: reduce number of multiple values to be inserted

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: reduce number of multiple values to be inserted
Дата
Msg-id CAKFQuwaTyOocntQF2htrM-GMFCwAsi5osMHTE8XiUDvWDu8giQ@mail.gmail.com
обсуждение исходный текст
Ответ на reduce number of multiple values to be inserted  (tango ward <tangoward15@gmail.com>)
Ответы Re: reduce number of multiple values to be inserted  (tango ward <tangoward15@gmail.com>)
Список pgsql-general
On Tuesday, May 29, 2018, tango ward <tangoward15@gmail.com> wrote:
I will repeat the same process for 13 villages so that will be 117 of values. I would like to know if there's a way to reduce the script? This has to be done strictly via script.


VALUES and CROSS JOIN might help but you haven't explained the pattern well enough, if there is one, to know for sure.  Frankly, you'll probably spend more time figuring out the elegant way than just copy-paste-change so unless you need to leverage this elsewhere I'd say just brute-force it.

David J.

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

Предыдущее
От: tango ward
Дата:
Сообщение: reduce number of multiple values to be inserted
Следующее
От: tango ward
Дата:
Сообщение: Re: reduce number of multiple values to be inserted