From: | Joe Conway <mail(at)joeconway(dot)com> |
---|---|
To: | "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com> |
Cc: | Kevin Brown <kevin(at)sysexperts(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: SQL99 ARRAY support proposal |
Date: | 2003-03-24 18:57:50 |
Message-ID: | 3E7F552E.6050500@joeconway.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
scott.marlowe wrote:
> On Sun, 23 Mar 2003, Kevin Brown wrote:
>>Use "split" and "merge". Avoids the "join" issue and avoids the
>>"implode/explode" issue too. :-)
>
> Isn't merge a new SQL keyword in SQL99 or SQL03?
Yup, in SQL200x at least:
14.9 <merge statement>
Function
Conditionally update rows of a table, or insert new rows into a table,
or both.
Format
<merge statement> ::=
MERGE INTO <target table> [ [ AS ] <merge correlation name> ]
USING <table reference>
ON <search condition> <merge operation specification>
At the risk of stirring up a debate again, my latest thoughts were to
define the two functions as:
str_to_array(str TEXT, delim TEXT) returns TEXT[]
array_to_str(array ANYARRAY, delim TEXT) returns TEXT
Joe
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2003-03-24 19:03:29 | Re: MySQL at .NET conference |
Previous Message | Bruce Momjian | 2003-03-24 18:57:03 | Re: A bad behavior under autocommit off mode |
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Conway | 2003-03-25 05:45:20 | array support patch phase 1 patch |
Previous Message | scott.marlowe | 2003-03-24 18:14:29 | Re: SQL99 ARRAY support proposal |