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

SAP Sybase SQL Anywhere 16.0 (中文) » MobiLink - 服务器管理 » MobiLink 服务器技术 » 同步技术 » 在远程数据库之间对行进行分区

 

无交集分区

分区由同步中涉及的每个表的 download_cursor 和 download_delete_cursor 脚本控制。这些脚本将使用两个参数:上次下载时间戳和同步调用中提供的 MobiLink 用户名。

在远程数据库之间对表进行分区,请遵循以下准则:

  • 在表定义中应包括一个包含统一数据库中的同步用户名的列。您不必将此列下载到远程数据库。

  • 在 download_cursor 和 download_delete_cursor 脚本的 WHERE 子句中包括一个条件,要求此列与脚本参数相匹配。

    脚本参数由脚本中的命名参数表示。例如,下面的 download_cursor 脚本根据雇员 ID 对 Contact 表进行分区。

    SELECT id, contact_name
    FROM Contact
    WHERE last_modified >= {ml s.last_table_download}
    AND emp_id = {ml s.username}
 另请参见
 示例