This is an old revision of the document!


Administration: Omnidex Fundamentals

Raw Data Files: Delimited Files

Declaring a Delimited File

Delimited files are accessed by creating a table definition in Omnidex that points to the data file. Just like with fixed-length files, applications can then use SQL statements to access the table. Omnidex will parse and read the data in the delimited file just like it would when accessing a relational table.

In the CREATE TABLE statement, the OPTIONS clause is used to identify this as a delimited file and indicate which delimiters to use. The DELIMITED option indicates that this is a delimited file. The remaining options govern the specific delimiters and behavior to use when parsing the file.

The PHYSICAL clause points to the physical location of the delimited file. This PHYSICAL clause can contain a relative path name (relative to the location of the Omnidex Environment File) such as “dat/states.csv”, or an absolute path name such as “d:/class/lab1/dat/states.csv”. This PHYSICAL clause can also contain wildcard as described below, and can also reference environment variables using a special syntax.

CREATE TABLE          "STATES"
 options              "DELIMITED COLUMN=',' RECORD='\r\n'"
 physical             "dat/states.csv"
 ...

Additional Resources

See also:

 
Back to top
admin/basics/rawdata/delimited/filenames.1299089926.txt.gz · Last modified: 2012/10/26 14:57 (external edit)