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

SQL Anywhere 11.0.1 (中文) » SQL Remote » SQL Remote 复制设计 » SQL Remote 复制设计和设置 » 了解基于事务日志的复制 » 数据类型

 

日期和时间

复制日期或时间列时,SQL Remote 使用 sr_date_format、sr_time_format 和 sr_timestamp_format 数据库选项的设置来设定日期格式。

例如,以下选项设置指示 SQL Remote 将 1998 年 5 月 2 日这一日期以 1998-05-02 的形式发送。

SET OPTION sr_date_format = 'yyyy-mm-dd';

复制日期和时间时:

  • 时间、日期和时间戳的格式在整个 SQL Remote 系统中必须保持一致。

  • 日期和时间戳格式使用的年、月、日顺序必须与 date_order 数据库选项的设置相符。

  • 可以更改每次连接持续时间的 date_order 选项。

另请参见