create table newtable as select * from oldtable where 1=2;(把数据过滤掉) 3.如过newtable 和oldtable的表结构不同,可以使用下面的方式: create table newtable as select s.c1,s.c2 from oldtable s; 4.如果想重新命名newtable的列名: 在oracle中: create table newtable(id,name1) as select s....
1、先建立一个database link,将两个库连接起来 语法:CREATE DATABASE LINK 链接名 CONNECT TO 账户 IDENTIFIED BY 口令 USING 服务名;例子:create database link mylink connect to user_name identified by password using 'test01'2、用insert into将test01表a的数据写入test表a insert into [...
create table newtable as select * from oldtable where 1=2;(把数据过滤掉) 3.如过newtable 和oldtable的表结构不同,可以使用下面的方式: create table newtable as select s.c1,s.c2 from oldtable s; 4.如果想重新命名newtable的列名: 在oracle中: create table newtable(id,name1) as select s....
Oracle把一个表中的数据插入到另外一个表中 1.在Oracle中可以用下面两种: 01: create table newtable as select * from oldtable;//用于复制前未创建新表newtable不存在的情况 02: insert into newtable select * from oldtable;//已经创建了新表newtable 的情况 注意:第一种方式只是复制了表结构,但是主键...