Re: insert question.. - Mailing list pgsql-general

From Thomas Kellerer
Subject Re: insert question..
Date
Msg-id bc7fkj$iek$2@main.gmane.org
Whole thread Raw
In response to insert question..  ("Williams, Travis L, NPONS" <tlw@att.com>)
List 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 by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: insert question..
Next
From: Thomas Kellerer
Date:
Subject: Re: How to find the definition of a sequence ?