Upsert (update or insert) in Sybase ASE?

前端 未结 6 1575
北恋
北恋 2021-02-20 17:32

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:09

    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.

提交回复
热议问题