1.0

Table Of Contents
Example
VALUES '13:23:12'
VALUES TIME('13:23:12')
The latter example uses the TIME() function described in the section Built-in functions and procedures.
TIMESTAMP
Provides for storage of both DATE and TIME as a combined value. In addition it allows for fractional seconds
having up to six digits. Supported formats are:
yyyy-MM-dd hh:mm:ss[.nnnnnn]
yyyy-MM-dd-hh.mm.ss[.nnnnnn]
The year (yyyy) must always be expressed with four digits. Months (MM), days (dd), and hours (hh) may have
one or two digits while minutes (mm) and seconds (ss) must have two digits. Microseconds, if present, may have
between one and six digits. DATEs, TIMEs, and TIMESTAMPs must not be mixed with one another in expressions
except with an explicit CAST.
java.sql.TimestampEquivalent Java type
java.sql.Types.TIMESTAMPJDBC metadata type
ResultSet.getTimestamp, PreparedStatement.setTimestampJDBC methods
System.DateTimeEquivalent .NET type
Vmware.Data.SQLFire.SQLFType.TimeStampADO.NET metadata type
DateTimeADO.NET mapped System.Data.Dbtype
DbDataReader.GetDateTimeADO.NET getter
Examples
VALUES '2000-02-03 12:23:04'
VALUES TIMESTAMP(' 2000-02-03 12:23:04.827')
VALUES TIMESTAMP('2000-02-03 12:23:04')
The latter examples use the TIMESTAMP() function described in the section Built-in functions and procedures.
User-Defined Types
SQLFire allows you to create user-dened types. A user-dened type is a serializable Java class whose instances
are stored in columns. The class must implement the java.io.Serializable interface. For efcient data transport
and storage, the class should also implement the java.io.Externalizable interface. If the class implements the
vFabric GemFire com.gemstone.gemre.DataSerializable interface, then it will be used for optimal storage and
peer-to-peer transport.
Note: You cannot register a custom .NET type as a user-dened type in SQLFire.
For information on creating and removing types, see CREATE TYPE on page 467 and DROP TYPE on page
477.
For information on writing the Java classes that implement user-dened types, see Programming User-Dened
Types on page 157.
vFabric SQLFire User's Guide582
vFabric SQLFire Reference