Mapping External DB Data Types to OutSystems Data Types

126 阅读2分钟

Mapping External DB Data Types to OutSystems Data Types

image.png When connecting to external databases, OutSystems maps the external DB Data Types into OutSystems Data Types as follows:

SQL ServerOracle Data TypeMySQL Data TypePostgreSQL Data TypeDB2 Data TypeOutSystems Data Type
Char Varchar Text Nchar Nvarchar Ntext Xml Decimal(Any,> 8) Numeric(Any,> 8) Real Float UniqueIdentifier Time DatetimeoffsetChar Varchar Varchar2 Clob Long Nchar NVarchar2 Nclob Number(Any,> 8) Float Binary_float Binary_double RowId URowId XmlTypeVarchar Char Longtext Mediumtext Tinytext Text Enum Set Decimal(> 28,Any) Decimal(Any,> 8) Numeric(> 28,Any) Numeric(Any,> 8) Double Real Float TimeCharacter Character Varying Varchar Vhar Uuid xml Public.citext Citext Text Real Double Precision Decimal (> 28, Any) Decimal (Any, > 8) Numeric (> 28, Any) Numeric (Any, > 8)Character Varchar Clob DbClob Xml Decimal(> 28,Any) Decimal(Any,> 8) Numeric(> 28,Any) Numeric(Any,> 8) Float Real DecFloat Double Time Nchar Nvarchar NClobText
Tinyint Smallint Int Decimal(1-9,0) Numeric(1-9,0)Number(2-9,0)Tinyint(> 1) Smallint Mediumint Int Decimal(1-9,0) Numeric(1-9,0)Integer Int Int4 Smallint Int2 Serial Serial4 Decimal(1-9,0) Numeric(1-9,0)Integer Smallint Decimal(1-9,0) Numeric(1-9,0)Integer
Bigint Decimal(10-18,0) Numeric(10-18,0)Number(10-18,0)Bigint Unsigned Int Bit(2-64) Decimal(10-18,0) Numeric(10-18,0)Bigint Int8 Bigserial Serial8 Decimal(10-18,0) Numeric(10-18,0)Bigint Decimal(10-18,0) Numeric(10-18,0)Long Integer
Decimal(19-28,0-8) Decimal(1-18,>1-8) Numeric(19-28,0-8) Numeric(1-18,>1-8) Money SmallmoneyNumber(19-28,0-8) Number(1-18,1-8)Unsigned Bigint Decimal(19-28,0-8) Decimal(1-18,1-8) Numeric(19-28,0-8) Numeric(1-18,1-8)Money Decimal(19-28,0) Decimal(1-18,1-8) Numeric(19-28,0) Numeric(1-28,1-8)Decimal(1-18,1-8) Decimal(19-28,0-8) Numeric(1-18,1-8) Numeric(19-28,0-8)Decimal
BitNumber(1,0)Bit(1) Tinyint(1)Bit Boolean BoolSmallInt* Integer* Bigint* * with constraint in (0,1)Boolean
DateDateDateDateDate
Datetime DateTime2 SmalldatetimeDate TimestampDatetime TimestampTimestampTimestampDateTime
Image Binary VarbinaryBfile Blob Raw Long RawBlob Longblob Tinyblob Mediumblob Binary VarbinaryByteaBinary Blob Char(Bit) VarChar(Bit) VarBinaryBinary Data
Sql_variant Geometry HierarchyId Geography Rowversion TimestampInterval day to second Interval year to monthPolygon Point Multipoint MultiPolygon LineString MultiLineString Geometry GeometryCollection YearBox Cidr Circle Inet Line Lseg Macaddr Path Point Polygon Tsquery Tsvector Txid_snapshot Bit varying ARRAY USER-DEFINED IntervalDatalink Graphic Vargraphic RowIdNo mapping available. The attribute will be marked as "Ignored" in Integration Studio.

For Decimal(M,D) or similar, M is the maximum number of digits (the precision) and D is the number of digits to the right of the decimal point (the scale).