Upsert (update or insert) in Sybase ASE?

前端 未结 6 3023
栀梦
栀梦 2021-02-20 17:40

I\'m writing an application to move data from Oracle to Sybase and need to perform update / insert operations. In Oracle, I\'d use MERGE INTO, but it doesn\'t seem to be availab

6条回答
  •  醉话见心
    2021-02-20 18:14

    unfortunately, it is impossible to insert and update a table in one statement without using MERGE. which btw does exist in SQL as of SQL:2008, according to this article anyway, and supported by almost all major databases, except Sybase ASE and PostgreSQL.

提交回复
热议问题