Table of ContentsPreviousNext

Ispirer             Ispirer


Ispirer SQLWays データベース移行ソフトウェア

Microsoft SQL ServerとSybaseのデータ型の差異

この章ではMicrosoft SQL Server と Sybase Adaptive Server databases で使用されるデータ型の差異について詳しく説明します。

データ型に関するより詳しい情報は、Microsoft SQL Server のデータ型 および Sybase のデータ型を参照してください。

TABLE 88. データ型の差異
SQL Server のデータ型
Sybase のデータ型
説明
変換
char(n)
1<=n<=8000
char(n)
1<=n<=255
 
 
固定長文字データ
 
もし、n>255ならば、SQL Serverの nchar(n) は Sybaseの text に変換されます
nchar(n)
1<=n<=4000
nchar(n)
1<=n<=255
 
 
固定長文字データ (Unicode、マルチバイト文字セット)
 
もし、n>255ならば、SQL Serverの nchar(n) は Sybaseの text に変換されます。
 
varchar(n)
1<=n<=8000
varchar(n)
1<=n<=255
可変長文字データ
 
もし、n>255ならば、SQL Serverの varchar(n) は Sybaseの textに変換されます。
 
nvarchar(n)
1<=n<=4000
nvarchar(n)
1<=n<=255
可変長文字データ (Unicode、マルチバイト文字セット)
 
もし、n>255ならば、SQL Serverの nvarchar(n) は Sybaseの textに変換されます。
 
bigint
-
Integer, 64-bit
SQL Serverの bigint は Sybaseの decimal(19,0)に変換されます。
int
int
Integer, 32-bit
不要
smallint
smallint
Integer, 16-bit
不要
tinyint
tinyint
Integer, 8-bit
不要
datetime
datetime
日付および時刻
不要
smalldatetime
smalldatetime
日付および時刻
不要
money
money
通貨データ
不要
smallmoney
smallmoney
通貨データ
不要
decimal(p,s) 1<=p<=38; 0<=s<=p;
decimal(p,s)
1<=p<= 38; 0<=s<=p;
固定小数点数値データ
不要
numeric(p,s)
1<=p<=38; 0<=s<=p;
numeric(p,s)
1<=p<=38; 0<=s<=p;
固定小数点数値データ
 
不要
float(n)
1<=n<=53
float(n)
1<=n<=machine dependent
浮動小数点数値データ
不要
-
double precision
浮動小数点数値データ, 64-bit
Sybaseの倍精度は SQL serverの float(53)に変換されます。
real
real
浮動小数点数値データ, 32-bit
不要
text
text
可変長文字データ、最大2Gb
不要
ntext
-
可変長 Unicode 文字データ、最大 1Gb
SQL Serverの ntext は Sybaseの textに変換されます。
binary(n)
1<=n<=8000
binary(n)
1<=n<=255
 
固定長バイナリデータ
 
もし、n>255ならば、SQL Serverの binary(n) はSybaseの imageに変換されます。
 
varbinary(n)
1<=n<=8000
varbinary(n)
1<=n<=255

可変長バイナリデータ
 
もし、n>255ならば、SQL Serverの varbinary(n) はSybaseの imageへ変換されます。
image
image
可変長バイナリデータ、最大 2 Gb
不要
bit
bit
整数値 0 または 1
SQL Serverの bit は NULL値を設定することができますが、Sybaseの bit はNULLは不可です。
NULL設定が可能な SQL Serverの bit はSybaseの tinyint または char(1) に変換されます。
uniqueidentifier
-
Globally unique identifier (GUID)
SQL Serverの uniqueidentifier はSybaseの char(36) に変換されます。
timestamp
timestamp
ローの更新時に更新されるユニークな番号
不要


Table of ContentsPreviousNext
Ispirer             Ispirer
Copyright © 1999-2015 Ispirer Systems Ltd. Ispirer and SQLWays are trademarks of Ispirer Systems Ltd. All other product names may be trademarks of the respective companies. All rights reserved.