Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » SQL Remote » 创建 SQL Remote 系统 » 发布和项目

 

变更发布

可通过添加、修改或删除项目或者通过重命名发布来对发布进行变更。

小心

在运行中的 SQL Remote 系统中变更发布可能会导致复制错误和复制系统中的数据丢失。 请参见升级和重新同步

 ♦ 变更发布 (Sybase Central)
  1. 使用 SQL Anywhere 12 插件,以发布的所有者或具有 DBA 权限的用户身份连接到数据库。

  2. 在左窗格中,单击 [发布] 文件夹。

  3. 右击想要变更的项目,然后单击 [属性] 以编辑发布。

 ♦ 变更发布 (SQL)
  1. 以拥有该发布的用户身份或具有 DBA 权限的用户身份连接到数据库。

  2. 执行 ALTER PUBLICATION 语句。

    例如,以下语句会将 Customers 表添加到 PubContacts 发布中。

    ALTER PUBLICATION PubContacts
       ADD TABLE Customers;

    例如,以下语句会在 PubContacts 发布中重新定义 Customers 项目。

    ALTER PUBLICATION PubContacts
       ALTER ARTICLE Customers ( name, surname );
 另请参见