INSERT or UPDATE - Mailing list pgsql-sql

From Andreas Kraftl
Subject INSERT or UPDATE
Date
Msg-id 1219045488.7792.9.camel@zeus
Whole thread Raw
Responses Re: INSERT or UPDATE  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-sql
Hello

I have an XML file, which i must import into the database. I transform
this XML File with xslt to sql INSERTS.

But there is also the possibility, that one row is available. Means that
i need an UPDATE instead of the INSERT.

Is it in SQL possible to decide if there is an UPDATE or an INSERT or
must i program something with PHP for example?

Thanks
Andreas



pgsql-sql by date:

Previous
From: Joe
Date:
Subject: Re: Cursor
Next
From: "A. Kretschmer"
Date:
Subject: Re: INSERT or UPDATE