Re: How to convert "output deleted/inserted into" in MySQL to Postgres

Поиск
Список
Период
Сортировка
От Michael_LT
Тема Re: How to convert "output deleted/inserted into" in MySQL to Postgres
Дата
Msg-id 1424468483637-5838771.post@n5.nabble.com
обсуждение исходный текст
Ответ на Re: How to convert "output deleted/inserted into" in MySQL to Postgres  (John R Pierce <pierce@hogranch.com>)
Ответы Re: Re: How to convert "output deleted/inserted into" in MySQL to Postgres  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: Re: How to convert "output deleted/inserted into" in MySQL to Postgres  (Paul Jungwirth <pj@illuminatedcomputing.com>)
Список pgsql-general
hey, john, i did as you said like:
update db.user
           set deleted        = 1,
               updateterminal = UpdateTerminal,
               updateuser     = UpdateUser,
               updatedate     = UpdateDate
     returning
               credittypeid,
               creditid,
               amount
          into ReconDeleted
         where deleted = 0
           and clientid = ClientID
           );

I have ERROR:  syntax error at or near "into"

ReconDeleted has three columns
    CreditTypeID bigint,
    CreditID     bigint,
    Amount       money



--
View this message in context:
http://postgresql.nabble.com/How-to-convert-output-deleted-inserted-into-in-MySQL-to-Postgres-tp5838762p5838771.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: How to convert "output deleted/inserted into" in MySQL to Postgres
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Re: How to convert "output deleted/inserted into" in MySQL to Postgres