create database link MyLink
connect to scott identified by "tiger"
using 'MyInstance'
/*to fill a local talbe using the data selected from another database linked with this */
insert into emp select * from emp@MyLink
/*to create a table that has the same structure and data as the one in the following select centence */
create table dept as select * from dept@MyLink
本文介绍了如何使用SQL语句创建数据库链接,并通过该链接进行数据表的创建与数据填充操作。具体包括创建数据库链接、从链接数据库中选择数据填充到本地表及创建与源表结构相同的数据表。
3423

被折叠的 条评论
为什么被折叠?



