Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
DATETIME 是一个域,实现为 TIMESTAMP,用于存储日期和时间信息。DATETIME 是 Transact-SQL 类型。
DATETIME
SQL/2008 服务商扩充。
Transact-SQL DATETIME(而不是 TIMESTAMP)由 Adaptive Server Enterprise 使用。Adaptive Server Enterprise 中的 DATETIME 类型支持 1753 年 1 月 1 日和 9999 年 12 月 31 日之间的日期,而且该值时间部分受支持的精度较小。在 SQL Anywhere 中,DATETIME 实现为 TIMESTAMP,并且没有这些限制。在 SQL Anywhere 和 Adaptive Server Enterprise 之间迁移数据时,请务必注意这些差异。