在以下示例中,具有关联日志的源表 DBName.Accounts 将在目标上创建,但不具有日志属性。
<database selection="unselected">
<name>DBName</name>
<table selection="included">
<name>Accounts</name>
<journaling>false</journaling>
</table>
</database>
这些 DDL 语句高亮显示了在指定日志时和不指定日志时表定义之间的差异。以下示例显示了源上 DBName.Accounts 的 DDL。
CREATE SET TABLE Accounts ,FALLBACK ,
DUAL BEFORE JOURNAL, DUAL AFTER JOURNAL, WITH JOURNAL TABLE = DBName.Journal1 ,
CHECKSUM = DEFAULT
(
Col1 VARCHAR(20) CHARACTER SET LATIN NOT CASESPECIFIC,
Col2 VARCHAR(20) CHARACTER SET LATIN NOT CASESPECIFIC,
col3 TIMESTAMP(0))
PRIMARY INDEX ( Col1 )
INDEX ( Col2 );
以下示例显示了在目标上创建但无日志记录功能的 DBName.Accounts 的 DDL。
CREATE SET TABLE Accounts ,FALLBACK ,
NO BEFORE JOURNAL, NO AFTER JOURNAL,
CHECKSUM = DEFAULT
(
Col1 VARCHAR(20) CHARACTER SET LATIN NOT CASESPECIFIC,
Col2 VARCHAR(20) CHARACTER SET LATIN NOT CASESPECIFIC,
col3 TIMESTAMP(0))
PRIMARY INDEX ( Col1 )
INDEX ( Col2 );