Re: Insert into sintax

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: Josué Maldonado <josue(at)lamundial(dot)hn>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Insert into sintax
Date: 2004-08-05 23:03:24
Message-ID: 87acx9p4qr.fsf@asmodeus.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Josué Maldonado <josue(at)lamundial(dot)hn> writes:

> Hello list,
>
> Could anyone point me the rigth way to write this query:
>
> INSERT INTO ped_cam
> (SELECT * from ped_pro where ped_pk=lnpedpk)
> WHERE NOT EXISTS (SELECT ped_pk FROM ped_cam
> WHERE ped_pk=lnpedpk);
>
> I got this:
> ERROR: syntax error at or near "WHERE" at character 63

You've misparenthesized.

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
--T. J. Jackson, 1863

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Duane Lee - EGOVX 2004-08-05 23:29:27 Re: Insert into sintax
Previous Message Josué Maldonado 2004-08-05 22:50:19 Insert into sintax