SQL-J Language Reference,
Page 106 of 118


[top]
[prev]
[next]
Documentation Top
Global Index
Reference Manual
TOC Index
Grammar index
Developer's Guide
TOC Index
Tuning Cloudscape
TOC Index

TIMESTAMP

TIMESTAMP stores a combined DATE and TIME value to be stored. It permits a fractional-seconds value of up to nine digits.

Syntax for Column Definition

TIMESTAMP

Corresponding Compile-Time Java Type


java.sql.Timestamp

JDBC Metadata Type (java.sql.Types)


TIMESTAMP

Dates, times, and timestamps cannot be mixed with one another in expressions.

SQL-J is more permissive than SQL-92 in the values and formats it permits in date/time literals. Any value that is recognized by the java.sql.Date, java.sql.Time or java.sql.Timestamp valueOf(String) method is permitted in a column of the corresponding SQL-J date/time data type.

Literal Syntax

[TIMESTAMP]YYYY-MM-DD HH:MM:SS[.FFFFFFFFF]

Literal Examples

'1960-01-01 23:03:20'
TIMESTAMP'1962-09-23 03:23:34.234'
TIMESTAMP'1960-01-01 23:03:20'
[top]
[prev]
[next]


Cloudscape Version 3.0
For technical support, go to: www.cloudscape.com and click Support.
Copyright © 1998 and 1999 Cloudscape, Inc. All rights reserved.