Re: [SQL] APPEND INTO?

2005-12-01 Thread Tom Lane
Mark Fenbers <[EMAIL PROTECTED]> writes: > I want to SELECT INTO mytable WHERE (criteria are met), except that I > want to APPEND into an existing table the rows that are selected, > instead of creating a new table (which SELECT INTO will do). How can > this be done? INSERT INTO foo SELECT wha

Re: [SQL] APPEND INTO?

2005-12-01 Thread Jaime Casanova
On 12/1/05, Mark Fenbers <[EMAIL PROTECTED]> wrote: > I want to SELECT INTO mytable WHERE (criteria are met), except that I > want to APPEND into an existing table the rows that are selected, > instead of creating a new table (which SELECT INTO will do). How can > this be done? > > (Is this what t

[SQL] APPEND INTO?

2005-12-01 Thread Mark Fenbers
I want to SELECT INTO mytable WHERE (criteria are met), except that I want to APPEND into an existing table the rows that are selected, instead of creating a new table (which SELECT INTO will do). How can this be done? (Is this what the "FOR UPDATE OF tablename" clause is for?) Mark ---