Sybase Adaptive Server Anywhere Reference page 233

Table of Contents

Advertisement

TRUNCATE_TIMESTAMP_VALUES option
Function
Allowed values
Scope
See Also
Default
Description
Example
TRUNCATE_WITH_AUTO_COMMIT option
Function
Allowed values
Default
See also
Description
When the option is set to OFF, DATE columns or variables have hours and
minutes stored also. These time components are typically not displayed
because of the DATE_FORMAT setting. However, exact comparisons
between DATE values may unexpectedly fail because of non-matching time
components.
Limits the resolution of timestamp values.
Integer
Can be set for the PUBLIC group. This option should not be enabled for
databases already containing timestamp data.
"DEFAULT_TIMESTAMP_INCREMENT option" on page 183
OFF
A TIMESTAMP value is precise to six decimal places in Adaptive Server
Anywhere. However, to maintain compatibility with other software, which
may truncate the TIMESTAMP value to three decimal places, you can set the
TRUNCATE_TIMESTAMP_VALUES option to ON to limit the number of
decimal places Adaptive Server Anywhere stores. The
Default_timestamp_increment option determines the number of decimal
places to which the TIMESTAMP value is truncated.
Setting the Default_timestamp_increment values option to 100000 causes
truncation after the first decimal place in the seconds component, allowing a
value such as '2000/12/05 10:50:53:700' to be stored.
To speed up TRUNCATE TABLE statements
ON, OFF
ON
"TRUNCATE TABLE statement" on page 631
If TRUNCATE_WITH_AUTO_COMMIT is set to ON, then a COMMIT is
executed both before and after the TRUNCATE TABLE statement is
executed. The primary purpose of the option is to enable faster table
truncation (delete of all rows).
Chapter 5 Database Options
215

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Adaptive Server Anywhere and is the answer not in the manual?

Questions and answers

Table of Contents