1.1

Table Of Contents
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 494 and DROP TYPE on page
506.
For information on writing the Java classes that implement user-dened types, see Programming User-Dened
Types on page 167.
VARCHAR
Provides for variable-length strings with a maximum limit for length. If a string value is longer than the maximum
length, then any trailing blanks are trimmed to make the length same as the maximum length, while an exception
is raised if characters other than spaces are required to be truncated. When mixing CHARs and VARCHARs in
expressions, the shorter value is padded with spaces to the length of longer string.
The type of a string constant is CHAR, not VARCHAR. To represent a single quotation mark within a string,
use two quotation marks:
VALUES 'going to Chandra''s place'
The length of VARCHAR is an unsigned integer constant.
java.lang.StringEquivalent Java type
32672Maximum length
java.sql.Types.VARCHARJDBC metadata type
ResultSet.getString, PreparedStatement.setStringJDBC methods
System.StringEquivalent .NET type
Vmware.Data.SQLFire.SQLFType.VarCharADO.NET metadata type
StringADO.NET mapped System.Data.Dbtype
DbDataReader.GetStringADO.NET getter
613
SQL Language Reference