Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
admin:basics:rawdata:record [2011/02/28 20:24]
els
— (current)
Line 1: Line 1:
-~~NOTOC~~ 
  
-{{page>:​top_add&​nofooter&​noeditbtn}} 
- 
-====== Administration:​ Omnidex Fundamentals ====== 
- 
-===== Raw Data Files ===== 
- 
-[[admin:​basics:​rawdata:​home|Overview]] | 
-[[admin:​basics:​rawdata:​types|File Types]] | 
-**[[admin:​basics:​rawdata:​record|Record Layouts]]** | 
-[[admin:​basics:​rawdata:​filesets|Filesets]] | 
-[[admin:​basics:​rawdata:​x|x]] 
- 
----- 
-==== Record Layout ==== 
- 
-The record layout described in the CREATE TABLE statement must exactly match the record layout in the data file.  This includes the order of the columns, as well as the datatypes and lengths of the columns. ​ If these record layouts do not match, Omnidex will have problems reading the data from the data file.  Omnidex cannot validate that the record layouts match, so it is always wise to retrieve a few rows to insure that the column definition and the data file line up properly. 
- 
-In the CREATE TABLE statement, the record layout is specified using the COLUMN clause. ​ The datatypes and lengths for these columns can be nearly any datatype supported by Omnidex. ​ The only exceptions are the VARCHAR and CLOB datatypes, as these require that the underlying data also include stored data lengths. ​ With raw data files, use STRING and CHARACTER datatypes instead. 
- 
-<code sql> 
-create table          "​STATES"​ 
- ​physical ​            "​dat\sta.dat"​ 
- ( 
-  "​STATE" ​            ​CHARACTER(2), ​               ​ 
-  "​DESCRIPTION" ​      ​STRING(31), ​                 
-  "​STATE_CODE" ​       CHARACTER(2), ​               ​ 
-  "​REGION" ​           CHARACTER(2), ​               ​ 
-  "​COUNTRY" ​          ​CHARACTER(2), ​               ​ 
-  "​TAX_RATE" ​         FLOAT                        
- ) 
- ​in ​                  "​simple.xml";​ 
-</​code>​ 
- 
- 
-=====  ===== 
- 
-**[[admin:​basics:​rawdata:​home|Prev]]** | 
-**[[admin:​basics:​rawdata:​record|Next]]** 
- 
-====== Additional Resources ====== 
- 
-See also:  
- 
-{{page>:​admin:​basics:​see_also&​nofooter&​noeditbtn}} 
- 
-{{page>:​bottom_add&​nofooter&​noeditbtn}} 
 
Back to top
admin/basics/rawdata/record.1298924656.txt.gz ยท Last modified: 2012/10/26 14:51 (external edit)