Data types in the DBMS |
|
Release 9.2
Last modified May 14, 2008 |
![]() ![]() ![]() Print all topics in : "Geodatabase table properties" |
When you create a table or add a field to a table in the geodatabase, fields are created as a specific data type. Data types are classifications that identify possible values for and operations that can be done on the data, as well as the way the data in that field is stored in the database.
When you import data of one type into a field of another data type, you need to understand what the equivalent data types are between ArcSDE and your database management system (DBMS) because it can impact data content. Also, when creating new datasets in ArcGIS, it is helpful to know the equivalent data types between ArcGIS and your DBMS. For example, if you add a floating point (float) column to an existing feature class, that equates to a numeric data type column in a SQL Server database.
NOTE: Moving data from one database to another can cause data types to remap.
When you create a feature class or table in ArcGIS, there are 11 different data types available for each column. These types are mapped to Oracle types in the table below.
ArcGIS data type | Oracle data type | Notes |
OBJECTID | NUMBER(38) | NOT NULL |
SHORT INTEGER | NUMBER(4) |
|
LONG INTEGER | NUMBER(38) |
|
FLOAT | NUMBER(38,8) |
|
DOUBLE | NUMBER(38,8) |
|
TEXT | VARCHAR2(50) |
|
DATE | DATE |
|
BLOB | BLOB |
|
GUID | CHAR(38) |
|
GEOMETRY | ST_GEOMETRY*
NUMBER(38) SDO_GEOMETRY |
Oracle data type depends on the geometry storage specified for the layer. |
RASTER | BLOB
LONG_RAW |
Oracle data type depends on the raster storage specified in the DBTUNE table. |
When you create a feature class or table in ArcGIS, there are 11 different data types available for each column. These types are mapped to SQL Server types in the table below.
ArcGIS data type | SQL Server data type |
OBJECTID | INT(4)* |
SHORT INTEGER | SMALLINT(2) |
LONG INTEGER | INT(4) |
FLOAT | REAL |
DOUBLE | DOUBLE** |
TEXT | VARCHAR(n) |
DATE | DATETIME |
BLOB | IMAGE |
GUID | UNIQUEIDENTIFIER(16) |
GEOMETRY | IMAGE |
RASTER | IMAGE |
When you create a feature class or table in ArcGIS, there are 11 different data types available for each column. These types are mapped to DB2 types in the table below.
ArcGIS data type | DB2 data type | Notes |
OBJECTID | INTEGER(4) | NOT NULL |
SHORT INTEGER | SMALLINT(2) |
|
LONG INTEGER | INTEGER(4) |
|
FLOAT | DECIMAL(31,8) |
|
DOUBLE | DECIMAL(31,8) |
|
TEXT | VARCHAR(n) |
|
DATE | TIMESTAMP |
|
BLOB | BLOB |
|
GUID | CHARACTER(38) |
|
GEOMETRY | ST_GEOMETRY | ST_Geometry is a superclass. The actual data subtype created (such as ST_Multilinestring or ST_Point) depends on what type of feature class you create, such as polygon, line, point, multipoint, and multipatch. |
RASTER | INTEGER(4) |
|
When you create a feature class or table in ArcGIS, there are 11 different data types available for each column. These types are mapped to Informix types in the table below.
ArcGIS data type | Informix data type | Notes |
OBJECTID | INT(4) | NOT NULL |
SHORT INTEGER | SMALLINT(2) |
|
LONG INTEGER | INT(4) |
|
FLOAT | DECIMAL(32) |
|
DOUBLE | DECIMAL(32) |
|
TEXT | VARCHAR(n) |
|
DATE | DATETIME |
|
BLOB | BLOB |
|
GUID | CHAR(8) |
|
GEOMETRY | ST_GEOMETRY | ST_Geometry is a superclass. The actual data subtype created (such as ST_Multilinestring or ST_Point) depends on what type of feature class you create, such as polygon, line, point, multipoint, and multipatch. |
RASTER | INT(4) |
|
When you create a feature class or table in ArcGIS, there are 11 different data types available for each column. These types are mapped to Access data types in the table below.
ArcGIS data type | Access data type | Notes |
OBJECTID | Long Integer | OBJECTID is an AutoNumber field. |
SHORT INTEGER | Integer |
|
LONG INTEGER | Long Integer |
|
FLOAT | Single |
|
DOUBLE | Double |
|
TEXT | Text |
|
DATE | Date/Time |
|
BLOB | OLE Object* |
|
GUID | Number |
|
GEOMETRY | OLE Object* |
|
RASTER | Memo | Memo fields can store up to 65,536 characters. |