Re: SQL99 ARRAY support proposal - Mailing list pgsql-hackers

From Joe Conway
Subject Re: SQL99 ARRAY support proposal
Date
Msg-id 3E7F552E.6050500@joeconway.com
Whole thread Raw
In response to Re: SQL99 ARRAY support proposal  ("scott.marlowe" <scott.marlowe@ihs.com>)
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: A bad behavior under autocommit off mode
Next
From: "Merlin Moncure"
Date:
Subject: Re: MySQL at .NET conference