NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
A-64
Examples—AS DATE/TIME
Examples—AS DATE/TIME
The following AS clause prints a date in the format March 15, 1995:
AS DATE "MA DB2, Y4"
The following clause prints a time value in the format 20:03:45:004:
AS TIME "HB2:M2:S2:C3"
The following clause specifies a date format but uses the default time format:
AS DATE "MA DB2, Y4" TIME *
ASCII Character Set
The ASCII character set is a subset of the nine single-byte ISO character sets (ISO
8859/1 through ISO 8859/9) that are used by SQL.
sThe following is a list of the characters in the ASCII character set along with their
internal representations and meanings.
S2 00, 01, ... 59
SB2 0, 1, ... 59
C2 00, 01, ... 99
CB2 0, 1, ... 99
T3 000, 001, ... 999
TB3 0, 1, ... 999
IN LCT specifies local civil time, the default.
Octal
Char Left Right Hex Dec Meaning Ordinal
NUL 000000 000000 00 0 Null 1
SOH 000400 000001 01 1 Start of heading 2
STX 001000 000002 02 2 Start of text 3
ETX 001400 000003 03 3 End of text 4
EOT 002000 000004 04 4 End of transmission 5
ENQ 002400 000005 05 5 Enquiry 6
ACK 003000 000006 06 6 Acknowledge 7
BEL 003400 000007 07 7 Bell 8
BS 004000 000010 8 8 Backspace 9
** The “grave” accent character is not printable
Format Values