9 个解决方案
#1
insert into n.o select cast(m.a as varchar2(10)) o from a
一个语句就实现
一个语句就实现
#2
如果沒有什麼連接條件的話,就用
insert into n (o,p,q) select a,b,c from m;
insert into n (o,p,q) select a,b,c from m;
#3
create or replace procedure m_n_proc
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;
//防止再次输入插入重复字段值
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;
//防止再次输入插入重复字段值
#4
insert into n(o) select a from m;
#5
---???
insert into n(o) select a from m
#6
create or replace procedure Prc_fetch_data
is
begin
insert into n(o) select a from m where xx 你的条件;
commit;//存储过程默认不提交
end m_n_proc
is
begin
insert into n(o) select a from m where xx 你的条件;
commit;//存储过程默认不提交
end m_n_proc
#7
哥顶你一下。。
#8
楼上都写出来了,接分算了。
#9
谢谢大家 每人都有份啊。。。。。
#1
insert into n.o select cast(m.a as varchar2(10)) o from a
一个语句就实现
一个语句就实现
#2
如果沒有什麼連接條件的話,就用
insert into n (o,p,q) select a,b,c from m;
insert into n (o,p,q) select a,b,c from m;
#3
create or replace procedure m_n_proc
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;
//防止再次输入插入重复字段值
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;
//防止再次输入插入重复字段值
#4
insert into n(o) select a from m;
#5
---???
insert into n(o) select a from m
#6
create or replace procedure Prc_fetch_data
is
begin
insert into n(o) select a from m where xx 你的条件;
commit;//存储过程默认不提交
end m_n_proc
is
begin
insert into n(o) select a from m where xx 你的条件;
commit;//存储过程默认不提交
end m_n_proc
#7
哥顶你一下。。
#8
楼上都写出来了,接分算了。
#9
谢谢大家 每人都有份啊。。。。。