如何实现oracle用存储过程将一张表的几个字段的数据导入到另一张表?急 例如表m 有a,b,c三个字段 表n 有 o,p,q三个字段 如何通过存储过程将m表中的a字段的数据导入到n表中的o字段? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 insert into n.o select cast(m.a as varchar2(10)) o from a一个语句就实现 如果沒有什麼連接條件的話,就用insert into n (o,p,q) select a,b,c from m; create or replace procedure m_n_procisbegin insert into n(o) select m.a from m where m.a not in (select n.o from n);end m_n_proc;//防止再次输入插入重复字段值 insert into n(o) select a from m; ---???insert into n(o) select a from m create or replace procedure Prc_fetch_dataisbegin insert into n(o) select a from m where xx 你的条件; commit;//存储过程默认不提交end m_n_proc 存储过程运行 oracl 就未响应 是不是要加锁? 怎么加啊求指导.... 帮忙优化一个SQL语句 oracle 致命的双工通信协议错误 紧急求一个表延迟更新的触发器 如何保存住根据sessionId来得到的登陆用户名,在sessionId失效后 求概念理解 SQL*plus 怎么过滤!组合sql语句的时候的一些词语 今天开机的头一个问题 求字符串处理函数 commit了事务,还能rollback吗? HELP!!如何将数据库中已有表导入到powerDesigner生成pdm文件?
insert into n (o,p,q) select a,b,c from m;
is
begin
insert into n(o) select m.a from m where m.a not in (select n.o from n);
end m_n_proc;
//防止再次输入插入重复字段值
insert into n(o) select a from m
is
begin
insert into n(o) select a from m where xx 你的条件;
commit;//存储过程默认不提交
end m_n_proc