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

SQL Anywhere 11.0.1 (中文) » MobiLink - 入门 » MobiLink 技术简介 » 研究 MobiLink 的 CustDB 示例 » 同步 CustDB

 

同步逻辑源代码

可以使用 Sybase Central 检查统一数据库中的同步脚本。

脚本类型与事件

通过调用 ml_add_connection_script 或 ml_add_table_script,custdb.sql 文件会将每个同步脚本都添加到统一数据库中。

示例

custdb.sql 中的以下代码行将为 ULProduct 表添加一个表级别的脚本,该脚本将在发生 download_cursor 事件期间执行。该脚本包含一个 SELECT 语句。

call ml_add_table_script(
'CustDB 11.0',
'ULProduct', 'download_cursor',
'SELECT prod_id, price, prod_name FROM ULProduct' )
go