Re: psql and blob

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: psql and blob
Дата
Msg-id 29727.1063901057@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: psql and blob  (Daniel Schuchardt <daniel_schuchardt@web.de>)
Список pgsql-general
Daniel Schuchardt <daniel_schuchardt@web.de> writes:
> So I have to do 2 steps manually in psql:
>  \lo_import(ClientFile) -> Returns OID
>  INSERT INTO tablexy (BLOBFIELD) VALUES (Returned OID)

> Is there a way to do this automatically?

See psql's :LASTOID (I think that's the name) variable.

            regards, tom lane

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

Предыдущее
От: Tim McAuley
Дата:
Сообщение: Re: Cannot Delete
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Cannot Delete