|
Appendix |
Data Types |
Dates National Character Data Types (UNICODE)
|
DatesOMNIDEX supports date formats in two very distinct ways:
Native database format is how the date data is stored in the native database. This is also how the date column should be declared in the OMNIDEX environment catalog. For example, in an Oracle database, a date is stored as an ORACLE DATETIME, therefore, the column declaration in the OMNIDEX environment catalog should match. This tells OMNIDEX what to expect when retrieving data from the underlying database. OMNIDEX index format is the format in which the dates are stored in the indexes. This format does not necessarily have to match the native database format. In fact, it should reflect only the information needed to search on. For example, a datetime data type stores the date as well as the time. However, if searches will only be performed on the date portion or even just the year, the OMNIDEX indexes can be defined to store only the relevant portion of the date without altering the underlying data. This speeds searches and decreases storage space for the indexes. This is defined in the FORMAT clause of the column declaration in the OMNIDEX environment catalog.
Date Data TypesOMNIDEX supports the following date data types. DATE TIME DATETIME ODBC DATE ODBC TIME ODBC DATETIME DB2 DATE DB2 TIME DB2 DATETIME INFORMIX DATE INFORMIX DATETIME ORACLE DATETIME ASCII DATE C DATETIME OMNIDEX DATE OMNIDEX TIME OMNIDEX DATETIME
Date FormatsThe FORMAT clause of the COLUMN section in the Omnidex Environment file applies to Omnidex Date class data types only. This includes OMNIDEX DATE, OMNIDEX DATETIME and OMNIDEX TIME data types. In the INTERNAL section of the COLUMN section, this refers to the actual
data stored in the database, in which case, this is only applicable to
flat file databases. This only applies when the data type of the actual
data stored in the database is an Omnidex Date class data type, which
usually only occurs in flat file databases. In the OMNIDEX section of the COLUMN section, this refers to what is
stored in the index files. The default format_spec is: YYYYMMDD DISC recommends that you do not index more granularity than is actually needed for the application. For example, in applications that will qualify records based on years, months, or even days, but never on time of day, it is not necessary and not recommended that the time data be indexed. The time data is not lost, it is simply not stored in the Omnidex indexes. Date formats are based on the following: YYYYMMDDHHNNSSFF YYYY YY MM DD HH NN SS FF Date formats can can be any of the following: YYYY
|
|
Home | What's New | Quick Links | Appendix |