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 Anywhere 服务器 - 数据库管理 » 配置数据库 » 数据库选项 » 数据库选项简介 » 按字母顺序排列的选项列表

 

return_date_time_as_string 选项 [数据库]

控制在查询时如何将日期、时间或时间戳值传递给客户端应用程序。

允许值

On、Off

缺省值

Off

作用域

只能设置为临时选项,保持到当前连接结束。

注释

此选项指示日期、时间和时间戳值是作为日期或时间数据类型还是作为字符串返回应用程序。

当此选项设置为 On 时,数据库服务器会在将日期、时间或时间戳值发送到客户端之前将它们转换为字符串,以保持 timestamp_format、date_format 或 time_format 选项设置。

Sybase Central 和 Interactive SQL 会自动将 return_date_time_as_string 选项设置为 On。

另请参见