ตารางเปรียบเทียบแบบชนิดข้อมูล

Download Report

Transcript ตารางเปรียบเทียบแบบชนิดข้อมูล

ตารางเปรียบเทียบแบบชนิดข้อมูล
แบบชนิด
ข้อมูล
ข้อความ
-ความยาว
คงที่
(Fixed)
MS
Access
SQL
server
MySQL
Oracle
text
char, nchar char
CHAR
-ความยาว
แปรผัน
(Variable)
text
varchar,
nvarchar
varchar
VARCHAR2,
NVARCHAR2
-บันทึก
(Memo)
memo
text,
ntext
text,
tinytext,
longtext
LONG
อ้างอิง: รศ. เพชรร ัตน์ โชติกอาภา. 2551. ระบบฐานข้อมูล.
แบบชนิด
ข้อมูล
MS
Access
ต ัวเลข
-Byte
byte
(8 bits)
-Integer integer
(16 bits)
SQL server
MySQL
Oracle
tinyint
tinyint
INTEGER
smallint
smallint
INTEGER
-Long
long
(32 bits) integer
int
int
INTEGER
-Long
(64 bits)
bigint
bigint
NUMBER(127,
0)
-Fixed
precision
decimal(p,d) decimal(p,d) NUMBER(p,d)
แบบชนิด
ข้อมูล
MS
SQL server
Access
MySQL
Oracle
ต ัวเลข (ต่อ)
-Float
single
real
float
NUMBER,
FLOAT
-Double
double
float
double
NUMBER
-Currency
currency money,
smallmoney
NUMBER(38,
4)
-Boolean
yes/no
INTEGER
bit
-
แบบชนิด MS Access
ข้อมูล
ว ันทีแ
่ ละ
เวลา
รูปภาพ
date/time
OLE Object
SQL server
MySQL
Oracle
datetime
date
smalldatetim
e
time,
datetime
timestamp
timestamp,
year
image
BLOB
BLOB
autoincrement
SEQUENCES
เลขเรียง autonumber identity
ลาด ับ
DATE