Upsert (update or insert) in Sybase ASE?

前端 未结 6 1444
北恋
北恋 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:19

    May be you could try to fake it with INSERT INTO and/or UPDATE FROM with some sub-queries but it will not be as convenient as Oracle does.

    You wanna do this into code or data warehouse ? because you could also encapsulate all the SQL into a stored procedure if you want to hide the complexity of the queries.

提交回复
热议问题