oracle中 if exists (select) update ...else ...insert 怎样写? select col from tb1 where ...if sql%found then update table tbl else insert table tbl end if; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 谢谢!!我想用一个sql语句来解决:strSql = "if exists ... update ... else insert..."connection.executeUpdate(strSql);.....................select col from tb1 where ...if sql%found then update table tbl else insert table tbl end if;好象是两条sql语句。。 update ....if sql%rowcount = 0 theninsert .... oracle 9i v$sql视图 如何产看sql语句内的参数值? 关于PL/SQLdeveloper中SQL window建表语句末尾分号 oracle查询格式转换 oracle 存取 视频文件 ,总有人应该遇见这样的问题 上亿条记录,数据文件居然达到了40个G这样正常吗?如何优化呢? ORACLE的插入实时性问题 请教一段SQL文,很急啊 菜鸟提问:怎么才能知道oracle的ORACLE_SID? 高分,求写存储过程? oracle 客户端连接中,它告诉没有监听器,监听器是怎么配置的? Oracle安装问题 请问Oracle里的自动增加字段是哪个?
我想用一个sql语句来解决:
strSql = "if exists ... update ... else insert..."
connection.executeUpdate(strSql);
.....................select col from tb1 where ...
if sql%found then
update table tbl
else
insert table tbl
end if;
好象是两条sql语句。。
if sql%rowcount = 0 then
insert ....