Re: SQL99 ARRAY support proposal

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: SQL99 ARRAY support proposal
Дата
Msg-id 3E7F552E.6050500@joeconway.com
обсуждение исходный текст
Ответ на Re: SQL99 ARRAY support proposal  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: A bad behavior under autocommit off mode
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: MySQL at .NET conference