insert into table select * from table的问题。
declare;
v_vessionId number;
begin
v_vessionId=10;
insert into t_table1 select *,v_vessionId from t_table where (condition);
end;
这样的程序在oracle中好象不行,不过在sql server 中可以使用这样的程序,请高手指教。
insert into t1 select *,@v_vessionId from t where (condition)
谢谢指教。
问题点数:20、回复次数:4Top
1 楼Lastdrop(空杯)回复于 2003-05-04 11:55:25 得分 20
试试:
declare --不应该有;
v_vessionId number;
begin
v_vessionId :=10; --少了:
insert into t_table1 select t_table.*,v_vessionId from t_table where (condition);
end;
/
Top
2 楼bird93(大嘴鹦鹉)回复于 2003-05-04 14:53:18 得分 0
楼上的,干什么呢?Top
3 楼kyc(风往天吹)回复于 2003-05-04 15:07:21 得分 0
就是呀,这种人最好得sars,让他不能出来乱叫。Top
相关问题
- Insert Into Table Select 问题
- [insert into...select and insert into ... valuse]
- 求论证两种刷新表方法的效率,truncate table+insert 和drop table+select into
- Table: Dataset not in Edit or Insert mode?
- Delete, insert(select...),Select ????
- Select * from (select * from Table) ??????????????????????
- 用insert into table union all select 插入的记录数达到1724时,SQL出现错误!
- 求一个SQL语句(insert into(AA,BB) select acct_item_id_seq.NEXTVAL,id,sum(charge) from TABLE group by id
- rs.open "select * from table",conn,?,?
- INSERT...SELECT 出问题了




