pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Manuel Lemos <mlemos@acm.org>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: Francisco Reyes <lists@natserv.com>
Cc: PostgresSQL PHP list <pgsql-php@postgresql.org>
Subject: Re: "SQL" REPLACE SYNTAX
Date: Wed, 23 Jan 2002 02:39:22 -0200
Message-ID: <3C4E3E7A.A48929A4@acm.org> (raw)
References: <GNELIHDDFBOCMGBFGEFOKECFCBAA.chriskl@familyhealth.com.au>

Hello,

Christopher Kings-Lynne wrote:
> 
> > We can discuss names, till the cows come home, but basically Manuel
> > described what he meant. The "replace" functionality is one of the few
> > things I liked of MySQL when I researched which dB to go with. The fact
> > that this layer can abstract the functionality is a great point in my
> > opinion.
> 
> Here's an idea:  look at their code to see what kind of SQL jiggery pokery
> they needed to implement it and then implement it ourselves...
> 
> BTW, from my estimates you'd need at least 4 - 6 sql queries to simulate the
> REPLACE syntax for Postgres, so why on earth would you use it?

Actually only two: a SELECT and a depending on that, a INSERT or an
UPDATE. You may want to try to look at Metabase implementation to see
how it works.

Regards,
Manuel Lemos



view thread (15+ messages)  latest in thread

Message-ID: <3C4E3E7A.A48929A4@acm.org>
Permalink:  ../3C4E3E7A.A48929A4@acm.org/
Also on:    postgresql.org/message-id/3C4E3E7A.A48929A4@acm.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: mlemos@acm.org, chriskl@familyhealth.com.au, lists@natserv.com
  Subject: Re: "SQL" REPLACE SYNTAX
  In-Reply-To: <3C4E3E7A.A48929A4@acm.org>
  References: <GNELIHDDFBOCMGBFGEFOKECFCBAA.chriskl@familyhealth.com.au> <3C4E3E7A.A48929A4@acm.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox