APPX is the Premier Development and Runtime Environment for Business Application Software
(Answer) (Category) FAQ's - APPX Software, Inc. : (Category) APPX Utility : (Category) APPX System Administration :
What is the default field mapping for RDBMS?
For Oracle the mapping is hard-coded. For ODBC (and DB2), the mapping depends on what the engine finds at run time. Appx asks the backend database for a list of data types and then tries to find the closest match for each field.

For Oracle (with Appx 4.2.8):

Appx field type = Alpha or Logic

        if the field is a key segment , Appx builds a CHAR(n) column

        if the field is less than 6 character long, Appx builds a CHAR(n) 
column,

        otherwise, Appx builds a VARCHAR(n) column

Appx field type = Date

        for CCYYMMDDhhmmss key segments, Appx builds a VARCHAR(14) column

        for CCYYMMDDhhmmss non-key fields, Appx builds a DATE column

        for all other date components,  Appx builds a VARCHAR(n) column

Appx field type = Numeric (binary)

        if field length = 1, Appx builds a NUMBER( 3, 0 ) column

        if field length = 2, Appx builds a NUMBER( 5, 0 ) column

        if field length = 4, Appx builds a NUMBER( 10, 0 ) column


Appx field type = Numeric (packed)

        Appx builds a NUMERIC( x, y ) column 

[Append to This Answer]
2005-Oct-05 8:49am
Previous: (Answer) Accessing 2 different schema's defined for 1 instance of Oracle
Next: (Answer) Known issue with SQL Server SP4
This document is: http://board.appx.com/cgi-bin/fom.cgi?file=600
[Search] [Appearance]
This is a Faq-O-Matic 2.719.
Copyright 2003 by APPX Software, Inc. All rights reserved.