Differences between nvarchar2 and varchar2 in Oracle

Source: Internet
Author: User

Varchar2 is a specific data type provided by Oracle. Oracle can ensure that varchar2 is compatible with the data type up and down in any version.
Varchar is not recommended in Oracle.

The difference between nvarchar2 and varchar2 is that nvarchar2 is related to character sets during length calculation. For example, if the database is a Chinese Character Set and the length is 10

1. nvarchar2 (10) can contain 10 Chinese characters. If it is used to store English letters, it can only contain 10 characters. Same as nvarchar in SQL

2. varchar2 (10) can only contain 5 Chinese characters and 10 English characters. Same as varchar in SQL

Related Article

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.