码迷,mamicode.com
首页 > 移动开发 > 详细

MS SQL SERVER: msdb.dbo.MSdatatype_mappings & msdb.dbo.sysdatatypemappings

时间:2015-10-23 22:59:02      阅读:828      评论:0      收藏:0      [点我收藏+]

标签:

--SQL转Oracle/DB2的类型对应关系
SELECT *
FROM msdb.dbo.MSdatatype_mappings;

--MS SQL SERVER更详细得显示了ORACLE/DB2各个数据库系统的类型对应
SELECT *
FROM msdb.dbo.sysdatatypemappings;

dbms_name sql_type dest_type dest_prec dest_create_params dest_nullable
DB2 bigint DECIMAL 19 3 true
DB2 binary CHAR () FOR BIT DATA -1 4 true
DB2 binary VARCHAR () FOR BIT DATA -1 4 true
DB2 bit SMALLINT   0 true
DB2 char CHAR -1 4 true
DB2 char VARCHAR -1 4 true
DB2 datetime TIMESTAMP   0 true
DB2 decimal DECIMAL -1 3 true
DB2 decimal VARCHAR 41 4 true
DB2 double precision DOUBLE   0 true
DB2 float FLOAT   0 true
DB2 image VARCHAR () FOR BIT DATA 0 4 true
DB2 int INT   0 true
DB2 money DECIMAL 19 3 true
DB2 nchar VARCHAR -1 4 true
DB2 ntext VARCHAR 0 4 true
DB2 numeric DECIMAL -1 3 true
DB2 numeric VARCHAR 41 4 true
DB2 nvarchar VARCHAR -1 4 true
DB2 nvarchar(max) VARCHAR 0 4 true
DB2 real REAL   0 true
DB2 smalldatetime TIMESTAMP   0 true
DB2 smallint SMALLINT   0 true
DB2 smallmoney DECIMAL 10 3 true
DB2 sysname VARCHAR 128 4 true
DB2 text VARCHAR 0 4 true
DB2 timestamp CHAR () FOR BIT DATA 8 4 true
DB2 tinyint SMALLINT   0 true
DB2 uniqueidentifier CHAR 38 4 true
DB2 varbinary VARCHAR () FOR BIT DATA -1 4 true
DB2 varbinary(max) VARCHAR () FOR BIT DATA 0 4 true
DB2 varchar VARCHAR -1 4 true
DB2 varchar(max) VARCHAR 0 4 true
DB2 xml VARCHAR 0 4 true
ORACLE bigint NUMBER 19 3 true
ORACLE binary BLOB   0 true
ORACLE binary RAW -1 4 true
ORACLE bit NUMBER 1 3 true
ORACLE char CHAR -1 4 true
ORACLE char CLOB   0 true
ORACLE char VARCHAR2 -1 4 true
ORACLE datetime DATE   0 true
ORACLE decimal NUMBER -1 3 true
ORACLE double precision FLOAT   0 true
ORACLE float FLOAT   0 true
ORACLE image BLOB   0 true
ORACLE int NUMBER 10 3 true
ORACLE money NUMBER 19 3 true
ORACLE nchar NCHAR -1 4 true
ORACLE nchar NCLOB   0 true
ORACLE ntext NCLOB   0 true
ORACLE numeric NUMBER -1 3 true
ORACLE nvarchar NCLOB   0 true
ORACLE nvarchar NVARCHAR2 -1 4 true
ORACLE nvarchar(max) NCLOB   0 true
ORACLE real REAL   0 true
ORACLE smalldatetime DATE   0 true
ORACLE smallint NUMBER 5 3 true
ORACLE smallmoney NUMBER 10 3 true
ORACLE sysname NVARCHAR2 128 4 true
ORACLE text CLOB   0 true
ORACLE timestamp RAW 8 4 true
ORACLE tinyint NUMBER 3 3 true
ORACLE uniqueidentifier CHAR 38 4 true
ORACLE varbinary BLOB   0 true
ORACLE varbinary RAW -1 4 true
ORACLE varbinary(max) BLOB   0 true
ORACLE varchar CLOB   0 true
ORACLE varchar VARCHAR2 -1 4 true
ORACLE varchar(max) CLOB   0 true
ORACLE xml NCLOB   0 true
ORACLE bigint NUMBER 19 3 true
ORACLE binary BLOB   0 true
ORACLE binary RAW -1 4 true
ORACLE bit NUMBER 1 3 true
ORACLE char CHAR -1 4 true
ORACLE char CLOB   0 true
ORACLE char VARCHAR2 -1 4 true
ORACLE datetime DATE   0 true
ORACLE decimal NUMBER -1 3 true
ORACLE double precision FLOAT   0 true
ORACLE float FLOAT   0 true
ORACLE image BLOB   0 true
ORACLE int NUMBER 10 3 true
ORACLE money NUMBER 19 3 true
ORACLE nchar CHAR -1 4 true
ORACLE nchar CLOB   0 true
ORACLE ntext CLOB   0 true
ORACLE numeric NUMBER -1 3 true
ORACLE nvarchar CLOB   0 true
ORACLE nvarchar VARCHAR2 -1 4 true
ORACLE nvarchar(max) CLOB   0 true
ORACLE real REAL   0 true
ORACLE smalldatetime DATE   0 true
ORACLE smallint NUMBER 5 3 true
ORACLE smallmoney NUMBER 10 3 true
ORACLE sysname VARCHAR2 128 4 true
ORACLE text CLOB   0 true
ORACLE timestamp RAW 8 4 true
ORACLE tinyint NUMBER 3 3 true
ORACLE uniqueidentifier CHAR 38 4 true
ORACLE varbinary BLOB   0 true
ORACLE varbinary RAW -1 4 true
ORACLE varbinary(max) BLOB   0 true
ORACLE varchar CLOB   0 true
ORACLE varchar VARCHAR2 -1 4 true
ORACLE varchar(max) CLOB   0 true
ORACLE xml CLOB   0 true
ORACLE bigint NUMBER 19 3 true
ORACLE binary BLOB   0 true
ORACLE binary RAW -1 4 true
ORACLE bit NUMBER 1 3 true
ORACLE char CHAR -1 4 true
ORACLE char CLOB   0 true
ORACLE char VARCHAR2 -1 4 true
ORACLE datetime DATE   0 true
ORACLE decimal NUMBER -1 3 true
ORACLE double precision FLOAT   0 true
ORACLE float FLOAT   0 true
ORACLE image BLOB   0 true
ORACLE int NUMBER 10 3 true
ORACLE money NUMBER 19 3 true
ORACLE nchar NCHAR -1 4 true
ORACLE nchar NCLOB   0 true
ORACLE ntext NCLOB   0 true
ORACLE numeric NUMBER -1 3 true
ORACLE nvarchar NCLOB   0 true
ORACLE nvarchar NVARCHAR2 -1 4 true
ORACLE nvarchar(max) NCLOB   0 true
ORACLE real REAL   0 true
ORACLE smalldatetime DATE   0 true
ORACLE smallint NUMBER 5 3 true
ORACLE smallmoney NUMBER 10 3 true
ORACLE sysname NVARCHAR2 128 4 true
ORACLE text CLOB   0 true
ORACLE timestamp RAW 8 4 true
ORACLE tinyint NUMBER 3 3 true
ORACLE uniqueidentifier CHAR 38 4 true
ORACLE varbinary BLOB   0 true
ORACLE varbinary RAW -1 4 true
ORACLE varbinary(max) BLOB   0 true
ORACLE varchar CLOB   0 true
ORACLE varchar VARCHAR2 -1 4 true
ORACLE varchar(max) CLOB   0 true
ORACLE xml NCLOB   0 true
SYBASE bigint decimal 19 3 true
SYBASE binary binary -1 4 true
SYBASE bit bit   0 true
SYBASE char char -1 4 true
SYBASE datetime datetime   0 true
SYBASE decimal decimal -1 3 true
SYBASE double precision double precision   0 true
SYBASE float float   0 true
SYBASE image image   0 true
SYBASE int int   0 true
SYBASE money money   0 true
SYBASE nchar nchar -1 4 true
SYBASE ntext text   0 true
SYBASE numeric numeric -1 3 true
SYBASE nvarchar(max) text   0 true
SYBASE real real   0 true
SYBASE smalldatetime smalldatetime   0 true
SYBASE smallint smallint   0 true
SYBASE smallmoney smallmoney   0 true
SYBASE sysname varchar 128 4 true
SYBASE text text   0 true
SYBASE timestamp varbinary 8 4 true
SYBASE tinyint tinyint   0 true
SYBASE uniqueidentifier char 38 4 true
SYBASE varbinary varbinary   0 true
SYBASE varbinary(max) image   0 true
SYBASE varchar varchar -1 4 true
SYBASE varchar(max) text   0 true
SYBASE xml text   0 true

MS SQL SERVER: msdb.dbo.MSdatatype_mappings & msdb.dbo.sysdatatypemappings

标签:

原文地址:http://www.cnblogs.com/quanweiru/p/4905809.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!