Caused by: org.postgresql.util.PSQLException: ERROR: syntax error ator near "merge".

Поиск
Список
Период
Сортировка
От Vinodh NV
Тема Caused by: org.postgresql.util.PSQLException: ERROR: syntax error ator near "merge".
Дата
Msg-id CAMBHpRjk1OxbYDRw1-cs_8LyKJ23LrXuiitmqaVJLJBJ7ckKvw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Caused by: org.postgresql.util.PSQLException: ERROR: syntaxerror at or near "merge".
Список pgsql-general
Sir,

I am facing the error Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at or near "merge". when I execute the below  query in postgres database. The same works fine in Oracle.

merge into net n using dual on (n.id=:id) when matched then update set Status=:status, lastStatusDate=:lastStatusDate, errorMessage=:errorMessage, errorDetails=:errorDetails when not matched then insert (id,Status, lastStatusDate, errorMessage, errorDetails) values (:id,:status,:lastStatusDate,:errorMessage,:errorDetails)";


Can you please let me know how to resolve it?

Thanks,
Vinodh.

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

Предыдущее
От: Murtuza Zabuawala
Дата:
Сообщение: Re: save query as sql file
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Caused by: org.postgresql.util.PSQLException: ERROR: syntaxerror at or near "merge".