Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
为 dbo.migrate_remote_table_list 表中列出的每个表创建代理表和基表。
sa_migrate_create_tables( i_table_owner )
i_table_owner 使用此 VARCHAR(128) 参数指定在目标 SQL Anywhere 数据库中拥有迁移表的用户。此用户是用 GRANT CONNECT 语句创建的。此参数需要值。
此过程为表 dbo.migrate_remote_table_list(使用 sa_migrate_create_remote_table_list 过程创建)中列出的每个表创建基表和代理表。这些代理表和基表由 i_table_owner 参数指定的用户所拥有。此过程还为远程表在远程数据库中的新表创建同样的主键索引和其它索引。
如果不希望目标 SQL Anywhere 数据库中的所有迁移表均属于同一个所有者,则必须对每个将拥有迁移表的用户执行 sa_migrate_create_remote_table_list 过程和 sa_migrate_create_tables 过程。
另一种选择是,使用 sa_migrate 系统过程一步迁移所有表。
此系统过程与其它几个迁移系统过程一起使用。sa_migrate_create_fks 系统过程注释部分的注意项中包含迁移过程的列表,以及执行它们时必须遵循的顺序。
无
以下语句在目标 SQL Anywhere 数据库中创建基表和代理表。这些表属于用户 local_a。
CALL sa_migrate_create_tables( 'local_a' );