Go Data type conversions between MYSQL and Oracle

Source: Internet
Author: User

Original address: http://www.cnblogs.com/guyueyanzi/archive/2010/02/27/1674788.html

Table 2-4 Default Data Type Mappings used by Oracle SQL Developer

MySQL Data Type Oracle Data Type

BIGINT

Number (19, 0)

BIT

RAW

Blob

BLOB, RAW

CHAR

CHAR

DATE

DATE

Datetime

DATE

DECIMAL

FLOAT (24)

DOUBLE

FLOAT (24)

DOUBLE PRECISION

FLOAT (24)

Enum

VARCHAR2

FLOAT

FLOAT

Int

Number (10, 0)

INTEGER

Number (10, 0)

Longblob

BLOB, RAW

Longtext

CLOB, RAW

Mediumblob

BLOB, RAW

Mediumint

Number (7, 0)

Mediumtext

CLOB, RAW

NUMERIC

Number

REAL

FLOAT (24)

SET

VARCHAR2

SMALLINT

Number (5, 0)

TEXT

VARCHAR2, CLOB

Time

DATE

TIMESTAMP

DATE

Tinyblob

RAW

TINYINT

Number (3, 0)

Tinytext

VARCHAR2

VARCHAR

VARCHAR2, CLOB

Year

Number

Convert data type conversions between]mysql and Oracle

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.