Re: insert question..

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: insert question..
Дата
Msg-id bc7fkj$iek$2@main.gmane.org
обсуждение исходный текст
Ответ на insert question..  ("Williams, Travis L, NPONS" <tlw@att.com>)
Список pgsql-general

Williams, Travis L, NPONS schrieb:
> I'm looking for an example on how to insert static data and information from a select at the same time..
>
> currently I'm doing:
>
> insert into performance (start,finish) select min(poll_time),max(poll_time) from poll
>
> I need to add a 3rd field that is static so I would have something like this
>
>
> insert into performance (name,start,finish) travis,select min(poll_time),max(poll_time) from poll
>

insert into performance (name,start,finish)
select 'Travis', min(poll_time),max(poll_time) from poll

Cheers



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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: insert question..
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: How to find the definition of a sequence ?