Re: Conditional SQL query

From: Cristóvão B(dot) B(dot) Dalla Costa <cdallacosta(at)bigfoot(dot)com>
To: "pgsql-sql" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Conditional SQL query
Date: 2000-11-05 21:46:07
Message-ID: 003401c04771$cf180bb0$02ffa8c0@terrificus
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> > insert into table select ... where col1 = 'value'
> >
>
> this is working but I am inserting values directly and not by select. eg:
>
> insert into table values(x,x,x)
> and not
> insert into table select * from table2
>

insert into table select (x, x, x) where col1 = 'value'

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Cristóvão B. B. Dalla Costa 2000-11-05 22:44:53 Re: Conditional SQL query
Previous Message Indraneel Majumdar 2000-11-05 19:03:31 Conditional SQL query