DB2 10.5 for Linux, UNIX, and Windows

SET CURRENT LOCALE LC_TIME statement

The SET CURRENT LOCALE LC_TIME statement changes the value of the CURRENT LOCALE LC_TIME special register. It is not under transaction control.

Invocation

This statement can be embedded in an application program or issued interactively. It is an executable statement that can be dynamically prepared.

Authorization

None required.

Syntax

Read syntax diagramSkip visual syntax diagram
                                  .-=-.                        
>>-SET--CURRENT--LOCALE--LC_TIME--+---+--+-host-variable---+---><
                                         '-string-constant-'   

Description

The CURRENT LOCALE LC_TIME special register is used by the DAYNAME, MONTHNAME, NEXT_DAY, ROUND, ROUND_TIMESTAMP, TIMESTAMP_FORMAT, TRUNCATE, TRUNC_TIMESTAMP and VARCHAR_FORMAT functions when the locale-name argument is not explicitly specified.
host-variable
A variable of type CHAR or VARCHAR. It cannot be set to null.
string-constant
A character string constant.

Notes

Examples