SQL-J Language Reference,
Page 101 of 118


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

LONGINT

LONGINT provides 8 bytes of storage for integer values.

Syntax for Column Definition

LONGINT

Corresponding Compile-Time Java Type


java.lang.Long

JDBC Metadata Type (java.sql.Types)


BIGINT

Minimum Value


-9223372036854775808 (java.lang.Long.MIN_VALUE)

Maximum Value


9223372036854775807 (java.lang.Long.MAX_VALUE)

When mixed with other data types in expressions, the resulting data type follows the rules shown in “Numeric Type Promotion in Expressions”.

An attempt to put an integer value of a larger storage size into a location of a smaller size fails if the value cannot be stored in the smaller-size location. Integer types can always successfully be placed in approximate numeric values, although with the possible loss of some precision. LONGINTs can be stored in DECIMALs if the DECIMAL precision is large enough for the value.

Literal Example

9223372036854775807
[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.