Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
将远程数据库表中的数据迁移到目标 SQL Anywhere 数据库中。
sa_migrate_data( i_table_owner )
i_table_owner 使用此 VARCHAR(128) 参数指定在目标 SQL Anywhere 数据库中拥有迁移表的用户。此用户是用 GRANT CONNECT 语句创建的。此参数需要值。请参见GRANT 语句。
此过程为属于 i_table_owner 参数所指定用户的表将数据从远程数据库迁移到 SQL Anywhere 数据库中。
当目标 SQL Anywhere 数据库中的表不是全都属于同一个所有者时,则必须为拥有您想迁移的数据的表的每个用户执行此过程。
另一种选择是,使用 sa_migrate 系统过程在一步中迁移所有表。
此系统过程与其它几个迁移系统过程一起使用。sa_migrate_create_fks 系统过程注释部分的注意项中包含迁移过程的列表,以及执行它们时必须遵循的顺序。请参见sa_migrate_create_fks 系统过程。
无
以下语句为属于用户 local_a 的表将数据迁移到目标 SQL Anywhere 数据库中。
CALL sa_migrate_data( 'local_a' );