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

SQL Anywhere 10.0.1 » SQL Remote » SQL Remote Installation Design » Publishing data

Publishing only some rows in a table Next Page

Publishing only some rows using a WHERE clause


You can specify a WHERE clause to include in the publication only the rows that satisfy the WHERE conditions.

To create a publication using a WHERE clause (Sybase Central)
  1. Connect to the database as a user with DBA authority.

  2. In the left pane, select the Publications folder.

  3. From the File menu, choose New > Publication.

    The Create Publication wizard appears.

  4. Type a name for the new publication. Click Next.

  5. On the Tables tab, select a table from the list of Available tables. Click Add. The table is added to the list of Selected Tables on the right.

  6. On the WHERE Clauses tab, select the table then type the search condition in the lower box.

  7. Click Finish.

To create a publication using a WHERE clause (SQL)
  1. Connect to the database as a user with DBA authority.

  2. Execute a CREATE PUBLICATION statement that includes the rows you wish to include in the publication and a WHERE condition.

  3. Examples

    See CREATE PUBLICATION statement [MobiLink] [SQL Remote].

    SUBSCRIBE BY

    The create publication statement also allows a SUBSCRIBE BY clause. This clause can also be used to selectively publish rows in SQL Remote. However, it is ignored during MobiLink synchronization.