Sign-up....

从一张表的数据导入到另一张表,请问该如何写sql语句?

有两张表字段名和结构一致

一张表有数据一张无数据

要将一张有数据表导入到另一张空表中请问该怎么写sql语句?

[56 byte] By [msdn] at [2007-8-15 9:50:12]
# 1 Re: 从一张表的数据导入到另一张表,请问该如何写sql语句?

insert into 无数据表 select * from 有数据表

raylle at 2006-5-10 15:58:11 >
# 2 Re: 从一张表的数据导入到另一张表,请问该如何写sql语句?

insert into b select * from a;

lunan at 2006-5-10 16:02:33 >
# 3 Re: 从一张表的数据导入到另一张表,请问该如何写sql语句?

请问不同的用户间的如何将一个表的数据倒入另一个表中

dazheng at 2006-5-11 16:53:44 >
# 4 Re: 从一张表的数据导入到另一张表,请问该如何写sql语句?

首先要有权限:

在9i中

conn sys as sysdba

grant select on schema.table to user_name;

然后再执行

insert into table_name

select * from schema.table_name;

xiaosheng2008 at 2006-5-11 17:09:55 >

Oracle

All Classified