CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Oracle >  开发

insert into table select * from table的问题。

楼主kyc(风往天吹)2003-05-04 11:41:25 在 Oracle / 开发 提问

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 出问题了

关键词

  • vessionid
  • 指教
  • insert
  • condition
  • 程序
  • table
  • declare
  • where
  • begin
  • number

得分解答快速导航

  • 帖主:kyc
  • Lastdrop

相关链接

  • Oracle类图书

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo