MS SQL SERVER: msdb.dbo.MSdatatype_mappings & msdb.dbo.sysdatatypemappings
--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的更多相关文章
- MS SQL Server中数据表、视图、函数/方法、存储过程是否存在判断及创建
前言 在操作数据库的时候经常会用到判断数据表.视图.函数/方法.存储过程是否存在,若存在,则需要删除后再重新创建.以下是MS SQL Server中的示例代码. 数据表(Table) 创建数据表的时候 ...
- (火炬)MS SQL Server数据库案例教程
(火炬)MS SQL Server数据库案例教程 创建数据库: CREATE DATABASE TDB //数据库名称 ON ( NAME=TDB_dat,//逻辑文件名 在创建数据库完成之后语句中引 ...
- (转载)MS SQL Server 未公开的加密函数有哪些?
MS SQL Server 未公开的加密函数有哪些? 以下的文章是对MS SQL Server 未公开的加密函数的具体操作,如果你对其相关的实际操作有兴趣的话,你就可以点击了. MS SQL Serv ...
- Set up JBPM5.4 Final Installer to use MS SQL Server 2008 using JTDS(转)
[-] A What I Am Going To Do B The Setup Steps C Lets Install it A. What I Am Going To Do B. The Se ...
- Oracle\MS SQL Server Update多表关联更新
原文:Oracle\MS SQL Server Update多表关联更新 一条Update更新语句是不能更新多张表的,除非使用触发器隐含更新.而表的更新操作中,在很多情况下需要在表达式中引用要更新的表 ...
- MS SQL Server递归查询
原文:MS SQL Server递归查询 刚才在论坛上看到网友一个要求.参考如下,Insus.NET分析一下,可以使用MS SQL Server的递归查询,得到结果.准备一张表: 根据网友提供的数据, ...
- MS SQL SERVER 2008 使用OBJECT_ID判断临时表是否存在
MS SQL SERVER 2008 使用OBJECT_ID判断临时表是否存在 我们在写sql 脚本的时候经常会用到临时表,有时间也需要根据临时表是否存在做一些逻辑处理.还好sql server已经集 ...
- 字符串中去除多余的空格保留一个(MS SQL Server)
大约2年前,写过一篇<字符串中去除多余的空格保留一个(C#)>https://www.cnblogs.com/insus/p/7954151.html 今天,Insus.NET使用MS S ...
- MS SQL Server的LTRIM,RTRIM和TRIM函数
在MS SQL Server 2017有了一个新函数TRIM,整合以前版本LTRIM和RTRIM. 这几个函数都是去除字符串头部后尾部的空格. DECLARE @str NVARCHAR(MAX) = ...
随机推荐
- 开发问题记录——ArcEngine问题记录
ArcEngine 使用Winform进行坐标投影变换,用到AE空间,出现如下错误: “ESRI.ArcGIS.esriSystem.IXMLSerialize”在未被引用的程序集中定义.必须添加 ...
- setcookie,getcookie,delcookie,setpostBgPic
function setCookie(name,value) { var Days = 365; //此 cookie 将被保存 30 天 var exp = new Date(); //new Da ...
- Android UI学习1:控件和基本事件的响应
在任何一个 GUI 系统中,控制界面上的控件(通常称为控件)都是一个基本的内容.对于 Android 应用程序,控件称为 View. 在 Android 中,在处理 UI 中的各种元素的时候,两个程序 ...
- ubuntu1304下安装boa服务器
本测试在ubuntu1304下测试,具体步骤如下: 1下载源码:www.boa.org,可在ubuntu下自带的火狐浏览器下载,也可在window下下载,然后再移到ubuntu下: 2打开终端,将bo ...
- RCP学习笔记
一些model特征: Trimmed Window: 带最小化最大化的窗体 Perspective Stack: 装载Perspective的容器 Perspective:一个透视,可以直接包含Par ...
- 三、mysql运算符
取模有2种方法: 或 mod(,) 比较一个字段的值是不是null有两种方法:is null 或 <=> null 不能直接使用 where id = null;是不对的
- 微软职位内部推荐-Senior Network Engineer
微软近期Open的职位: Global Foundation Services is the team behind the cloud. GFS is responsible for deliver ...
- I/O 流---输出流
输出流(写入数据) a. 字节输出流 OutputStram 输出流的父类 FileOutputStream: 继承OutputStream 方法: OutputStream os=new File ...
- iOS人脸识别核心代码(备用)
for (int i = 0; i < 1; i++) { //< [arr count]; i++) { CIFaceFeature *feature = [arr objectAtIn ...
- IE 坑爹的浏览器兼容模式
作为作为Web的前端开发人员,最悲催的莫过于要不断的,不断的去调试各种浏览器的显示效果,个人比较喜欢用火狐浏览器来做开发和调试,对于不怎么懂CSS的我来说,IE的样式调整一看就头大了.对于没有美工的团 ...