在 Sybase ASE 中更新插入(更新或插入)? [英] Upsert (update or insert) in Sybase ASE?

查看:70
本文介绍了在 Sybase ASE 中更新插入(更新或插入)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个应用程序来将数据从 Oracle 移动到 Sybase,并且需要执行更新/插入操作.在 Oracle 中,我会使用 MERGE INTO,但它似乎在 Sybase 中不可用(无论如何在 ASE 中都不可用).我知道这可以用多个语句来完成,但出于几个原因,我真的想把它变成一个语句.

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 available in Sybase (not in ASE, anyway). I know this can be done with multiple statements, but for a couple of reasons, I'm really trying to get this into a single statement.

有什么建议吗?

推荐答案

ASE 15.7 具有此功能.

在此处查找文档:http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc36272.1570/html/commands/commands84.htm

这篇关于在 Sybase ASE 中更新插入(更新或插入)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆