23.10.2012 Views

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Data</strong> types<br />

198<br />

REAL<br />

Corresponds to a single precision floating-point number equivalent to the C language float<br />

type.<br />

DOUBLE PRECISION<br />

Corresponds to a double precision floating-point number equivalent to the C language<br />

double type.<br />

FLOAT [ ( precision ) ]<br />

Corresponds to a double precision floating-point number of the given precision, in bytes.<br />

By default, FLOAT columns have a precision of 8. The REAL data type is same as a<br />

FLOAT(4), and double-precision is the same as a FLOAT(8).<br />

Date-time data types<br />

Date-time data types are used to define points in time. This is the syntax for the date-time data<br />

types:<br />

Syntax<br />

DATE | TIME | TIMESTAMP |TIMESTAMP WITH TIME ZONE<br />

DATE<br />

TIME<br />

Stores a date value as three parts: year, month, and day. The ranges for the parts are:<br />

• Year: 1 to 9999<br />

• Month: 1 to 12<br />

• Day: Lower limit is 1; the upper limit depends on the month and the year<br />

Stores a time value as four parts: hours, minutes, seconds, and milliseconds. The ranges<br />

for the parts are:<br />

• Hours: 0 to 23<br />

• Minutes: 0 to 59<br />

• Seconds: 0 to 59<br />

• Milliseconds: 0 to 999<br />

TIMESTAMP<br />

Combines the parts of DATE and TIME<br />

TIMESTAMP WITH TIME ZONE<br />

Combines the elements of TIMESTAMP with a time zone offset

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!