0% found this document useful (0 votes)
40 views

Database Data Types

This document summarizes how OutSystems data types are mapped to data types in SQL Server/SQL Azure and Oracle databases. The main OutSystems data types like text, integer, decimal, boolean, date, and time map to equivalent data types in the databases. Some data types like binary data and currency are more specific in the database mappings. Entity identifiers are dependent on the type of identifier used.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

Database Data Types

This document summarizes how OutSystems data types are mapped to data types in SQL Server/SQL Azure and Oracle databases. The main OutSystems data types like text, integer, decimal, boolean, date, and time map to equivalent data types in the databases. Some data types like binary data and currency are more specific in the database mappings. Entity identifiers are dependent on the type of identifier used.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Database Data Types

• Edit
Collaborate with us

Edit this page on GitHub

The following table represents how OutSystems data types are mapped to the data types of the
database being used.

SQL Server /
OutSystems Oracle Obs.
SQL Azure
nvarchar(<length>) if
the length is less VARCHAR2(<length>),
than or equal to if the length is less
Text
2000, than or equal to 2000,
NVarchar(max) CLOB otherwise.
otherwise.

int If an attribute with


NUMBER(10) If an
this type is set to
attribute with this type
Integer auto number, the
is set to auto number,
IDENTITY attribute
a sequence is added.
is added.

bigint If an attribute
NUMBER(20) If an
with this type is set
attribute with this type
Long Integer to auto number, the
is set to auto number,
IDENTITY attribute
a sequence is added.
is added.

decimal() The NUMBER() The


At runtime, when values are read
precision and scale precision and scale
from (or saved to) the database,
values, are the ones values, are the ones
the number of decimal digits
Decimal defined by the defined by the Length
depends on the stack of the
Length and and Decimals
application server. Consider the
Decimals properties properties of the
restrictions of System.Decimal.
of the attribute. attribute.

Boolean bit NUMBER(1)

Date Time datetime TIMESTAMP

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Data/Database_Reference/Database_…
Updated: Sat, 26 Feb 2022 01:29:24 GMT

1
SQL Server /
OutSystems Oracle Obs.
SQL Azure
Date datetime TIMESTAMP

Time datetime TIMESTAMP

Phone Number varchar(20) VARCHAR2(20)

Email varchar(250) VARCHAR2(250)

Binary Data image BLOB

Currency decimal(37,8) NUMBER(37,8)

Depends on the type


Entity Identifier
of the Identifier.

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Data/Database_Reference/Database_…
Updated: Sat, 26 Feb 2022 01:29:24 GMT

You might also like