When no WHERE clause is specified in an article definition, all changed rows in the table are uploaded. Add WHERE clauses to articles in the publication to limit the rows to be uploaded to those that have changed and that satisfy the search condition in the WHERE clause.
Prérequis
There is an existing remote database and you have the SYS_REPLICATION_ADMIN_ROLE system role.
Contexte et remarques
The search condition in the WHERE clause can only reference columns that are included in the article. In addition, you cannot use any of the following in the WHERE clause:
subqueries
variables
non-deterministic functions
These conditions are not enforced, but breaking them can lead to unexpected results. Any errors relating to the WHERE clause are generated when the DML is run against the table referred to by the WHERE clause, and not when the publication is defined.
Connect to the remote database using the SQL Anywhere 16 plug-in.
Double-click Publications.
Click File » New » Publication.
In the What Do You Want To Name The New Publication field, enter a name for the new publication. Click Next.
Click Next.
On the Available Tables list, select a table. Click Add.
Click Next.
Click Next.
In the Articles List, select a table and enter the search condition in the The Selected Article Has the following WHERE clause pane.
Click Finish.
![]() |
Discuter à propos de cette page dans DocCommentXchange.
|
Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0 |