Oracle column type description

Source: Internet
Author: User

In work, you often need to determine the type of columns in the table according to the actual situation. The following table records the description of column types in oralce.

Field Type Description Restrictions Other Instructions
Char Fixed-length string Maximum length: 2000 bytes Maximum index length: 749
Varchar2 Variable-length string Maximum length: 4000 bytes  
Nchar Character Set-based fixed-length string Maximum length: 2000 bytes  
Nvarchar2 Variable-length String Based on Character Set Maximum length: 4000 bytes  
Date Date (day-month-year) DD-MM-YY (HH-MI-SS) has been strictly tested, no problems  
Long Super long string A maximum length of 2 GB (231-1) is enough to store big part books. Multimedia Image sound storage
Raw Fixed-length binary data Maximum length: 2000 bytes  
Long raw Variable-length binary data Maximum length: 2 GB  
Blob Binary data Maximum length: 4 GB  
Clob Character data Maximum length: 4 GB  
Nclob Character data based on character sets Maximum length: 4 GB  
Bfile Binary data stored outside the database Maximum length: 4 GB  
Rowid Unique row number recorded in the data table 10 bytes * *******. *****. ***** Format, * 0 or 1
Nrowid The unique row number recorded in the binary data table. Maximum length: 4000 bytes  
Number (P, S) Numeric type P is the integer, and s is the decimal place.  
Decimal (P, S) Numeric type P is the integer, and s is the decimal place.  
Integer Integer type Small integer  
Float Floating Point Type Number (38), Double Precision  
Real Real Number Type Number (63), higher accuracy  

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.