向一个表中插入记录的问题?
kyc 2003-05-04 11:17:44 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)
谢谢指教。