您的位置:首页 > 数据库 > Oracle

Oracle data types and corresponding DataStage data types

2012-03-25 13:16 429 查看
Oracle data types and corresponding DataStage data types

Oracle data typeDataStage data type
CHAR(n BYTE)SQL type: CHAR
Length: n
Scale: unset
Extended: unset

CHAR(n CHAR ) single-byteSQL type: CHAR
Length: n
Scale: unset
Extended: unset

CHAR(n CHAR) multibyteSQL type: NCHAR
Length: n
Scale: unset
Extended: unset

CHAR single-byteIf the NLS_LENGTH_SEMANTICS database parameter is set to CHAR, then see CHAR(n CHAR). Otherwise, see CHAR(n BYTE) single-byte. In both cases, assume that n = 1.
CHAR multibyteIf the NLS_LENGTH_SEMANTICS database parameter is set to CHAR, then see CHAR(n CHAR). Otherwise, see CHAR(n BYTE) multibyte. In both cases, assume that n = 1
VARCHAR2(n BYTE)SQL type: VARCHAR
Length: n
Scale: unset
Extended: unset

VARCHAR2(n CHAR) single-byteSQL type: VARCHAR
Length: n
Scale: unset
Extended: unset

VARCHAR2(n CHAR) multibyteSQL type: NVARCHAR
Length: n
Scale: unset
Extended: unset

CLOB single-byteSQL type: LONGVARCHAR
Length: unset
Scale: unset
Extended: unset

CLOB multibyteSQL type: LONGNVARCHAR
Length: unset
Scale: unset
Extended: unset

LONG single-byteSQL type: LONGVARCHAR
Length: unset
Scale: unset
Extended: unset

LONG multibyteSQL type: LONGNVARCHAR
Length: unset
Scale: unset
Extended: unset

NCHAR(n)SQL type: NCHAR
Length: n
Scale: unset
Extended: unset

NCHARSee NCHAR(n) and assume that n = 1.
NVARCHAR2(n)SQL type: NVARCHAR
Length: n
Scale: unset
Extended: unset

NCLOBSQL type: LONGNVARCHAR
Length: unset
Scale: unset
Extended: unset

NUMBERSQL type: DOUBLE
Length: unset
Scale: unset
Extended: unset

NUMBER (p, s) {p>=s} {s>=0}SQL type: DECIMAL
Length: p
Scale: s
Extended: unset

NUMBER(p, s) {p<s} {s>=0}SQL type: DECIMAL
Length: s
Scale: s
Extended: unset

NUMBER(p, s) {s<0}SQL type: DECIMAL
Length: p-s
Scale: unset
Extended: unset

FLOAT(p) {1 <=p <=63}SQL type: FLOAT
Length: unset
Scale: unset
Extended: unset

FLOAT(p) {64 <=p <= 127}SQL type: DOUBLE
Length: unset
Scale: unset
Extended: unset

BINARY_FLOATSQL type: FLOAT
Length: unset
Scale: unset
Extended: unset

BINARY_DOUBLESQL type: DOUBLE
Length: unset
Scale: unset
Extended: unset

LONG RAWSQL type: LONGVARBINARY
Length: unset
Scale: unset
Extended: unset

RAW(n)SQL type: VARBINARY
Length: n
Scale: unset
Extended: unset

BLOBSQL type: LONGVARBINARY
Length: unset
Scale: unset
Extended: unset

BFILESQL type: VARCHAR
Length: 285
Scale: unset
Extended: unset

DATESQL type: DATE
Length: unset
Scale: unset
Extended: unset

TIMESTAMP(fsp)SQL type: TIMESTAMP
Length: unset
Scale: fsp
Extended: Microseconds

TIMESTAMP(fsp) WITH TIME ZONESQL type: TIMESTAMP
Length: unset
Scale: fsp
Extended: Microseconds

TIMESTAMP(fsp) WITH LOCAL TIME ZONESQL type: TIMESTAMP
Length: unset
Scale: fsp
Extended: Microseconds

TIMESTAMPSee TIMESTAMP(fsp) and assume that fsp=6.
TIMESTAMP WITH TIME ZONESee TIMESTAMP(fsp) WITH TIME ZONE and assume that fsp=6.
TIMESTAMP WITH LOCAL TIME ZONESee TIMESTAMP(fsp) WITH LOCAL TIME ZONE and assume that fsp=6.
INTERVAL YEAR (yp) TO MONTHSQL type: VARCHAR
Length: yp+4
Scale: unset
Extended: unset

INTERVAL DAY TO SECOND (sp)SQL type: VARCHAR
Length: sp+13
Scale: unset
Extended: unset

INTERVAL DAY (dp) TO SECONDSQL type: VARCHAR
Length: dp+17
Scale: unset
Extended: unset

INTERVAL DAY (dp) TO SECOND (sp)SQL type: VARCHAR
Length: dp+sp+11
Scale: unset
Extended: unset

INTERVAL YEAR TO MONTHSee INTERVAL YEAR (yp) TO MONTH and assume yp=2.
INTERVAL DAY TO SECONDSee INTERVAL DAY (dp) TO SECOND (sp) and assume that dp=2 and thatsp=6.
ROWIDSQL type: CHAR
Length: 18
Scale: 18
Extended: unset

UROWID(n)SQL type: VARCHAR
Length: n
Scale: unset
Extended: unset

UROWIDSee UROWID(n) and assume that n=4000.
XMLType stored as CLOB or
OBJECT_RELATIONAL
single-byte

See CLOB single-byte.
XMLType stored as CLOB or
OBJECT_RELATIONAL
multibyte

See CLOB multibyte.
XMLType stored as
BINARY XML

See BLOB.
OtherSQL type: UNKNOWN
Length: unset
Scale: unset
Extended: unset

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: