Chinaunix首页 | 论坛 | 博客
  • 博客访问: 970238
  • 博文数量: 358
  • 博客积分: 8185
  • 博客等级: 中将
  • 技术积分: 3751
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-15 16:27
个人简介

The views and opinions expressed all for my own,only for study and test, not reflect the views of Any Company and its affiliates.

文章分类

全部博文(358)

文章存档

2012年(8)

2011年(18)

2010年(50)

2009年(218)

2008年(64)

我的朋友

分类: Oracle

2009-06-20 21:02:03

用户间复制数据
SQL> copy from user1 to user2 create table2 using select * from table1; 

SQL> copy from scott/tiger to hr create dept using select * from dept;
SP2-0519: FROM 字符串缺失 Oracle Net @database 描述
SQL> copy from scott/tiger@database to hr/hr@database create dept using select * from dept;


COPY
----
This option is the simplest one for changing the ownership of a table. To use it, you must have SQL*Net configured in your system. For syntax details, see the SQL*Plus User's Guide and Reference. With the COPY command, the storage parameters of the table cannot be changed. The table will be recreated in the default tablespace of the user to whose schema the copy is made. For example, to copy table EMP belonging to SCOTT into JOE's schema, the statement is:

COPY FROM scott/tiger@ny to joe/lion@ny CREATE JOE_EMP USING SELECT * FROM EMP
阅读(634) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~