Re: Inserting / Selecting / Getting the Index.

Поиск
Список
Период
Сортировка
От David Johnston
Тема Re: Inserting / Selecting / Getting the Index.
Дата
Msg-id 11A4B6E5-39B8-4B90-BDC2-3FB5F3678D5A@yahoo.com
обсуждение исходный текст
Ответ на Inserting / Selecting / Getting the Index.  (Daron Ryan <daron.ryan@gmail.com>)
Список pgsql-general
Call a custom function that does what you asking and that returns the appropriate index value.

David J.

On May 15, 2011, at 9:43, Daron Ryan <daron.ryan@gmail.com> wrote:

I have a table with just 2 columns, 1 for a character array and one an integer index. I need to process a string such as to find out the index for it in the table if it is already there or insert it and then find out it's index which is auto generated otherwise. Is there a way to do this in a single step?

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

В списке pgsql-general по дате отправления:

Предыдущее
От: Daron Ryan
Дата:
Сообщение: Inserting / Selecting / Getting the Index.
Следующее
От: Tarlika Elisabeth Schmitz
Дата:
Сообщение: Role for CSV import