insert question..

From: "Williams, Travis L, NPONS" <tlw(at)att(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: insert question..
Date: 2003-06-11 14:45:05
Message-ID: AB815D267EC31A4693CC24D234F8291604D64137@ACCLUST02EVS1.ugd.att.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Thanks,

Travis

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Williams, Travis L, NPONS 2003-06-11 14:46:03 Re: How to find the definition of a sequence ?
Previous Message Adam Witney 2003-06-11 14:44:17 Re: How to find the definition of a sequence ?