Previous Topic: Character String LiteralsNext Topic: Second Form (HEX)


First Form

The first form is a sequence of characters that starts and ends with a string delimiter as specified by the STRDELIM= plan option. A string delimiter is either an apostrophe (') or a quotation mark (").

This form of string literal specifies the character string contained between the string delimiters. Two consecutive string delimiters are used to represent one string delimiter within the character string. The length of the character string must not be greater than 32720. Character string literals are delimiter tokens.

Some examples of character string literals are:

Dates, times, and timestamps are special character string literals with minimum length requirements as described in the following sections:

Dates

Dates must have a minimum of 10 characters. Formats for dates are as follows (where yyyy represents the year, mm the month, and dd the day):

You can vary the formats for dates as given previous as follows:

Times

Times must have a minimum of eight characters. Formats for times are as follows (where hh represents hours, mm minutes, and ss seconds):

You can vary the formats for times as given previous as follows:

Timestamps

Timestamps must have a minimum of 26 characters. The format for timestamps in all cases is as follows (where yyyy-mm-dd represents the date, hh.mm.ss the time, and nnnnnn the microseconds):

You can vary the formats for times as given previous as follows: