HomeНаука и техникаRelated VideosMore From: Caleb Curry

Oracle SQL Tutorial 29 - NCHAR Part 1

88 ratings | 4029 views
NCHAR is another data type available in Oracle database. This data type is very similar to the char data type with some key differences. NCHAR is also known as the national character set. This is a data type that allows us to store Unicode characters. It is really recommended that you watch the two videos over Unicode and UTF-8 because this video is going to talk a lot about it. Why is it that we have an entire data type dedicated to storing Unicode? That will be easily understood once we understand how character sets and encodings are applied to Oracle. They are applied at the database level. That means that you have a character set that applies to the entire database. This is in contrast to some database management systems that allow you to apply a data type at the table and column level. For example, in MySQL you can make a table have a character set, and make a specific column in that table a different character set. That means we can customize everything at the expense of adding potential complexity and confusion. Oracle does not work that way. In Oracle, we define one character set for the entire database. The problem with defining a character set for the entire database is that it may not be the character set we want to use for everything. That is where the NCHAR column comes in. The NCHAR column allows us to have a Unicode column inside of a database that does not use Unicode as the default character set. That is important because it is very often that we want to use Unicode but we may not need to use it for everything, for example if that application is working with ASCII nearly all of the time. If you are using Unicode for the database, then NCHAR is not going to be needed and should not be used. This data type is not as widely accepted, so only use it if you absolutely need to, specifically when you need to store Unicode in a non-Unicode database. Additionally, there is some controversy when it comes to whether or not you should use the CHAR and NCHAR data types in Oracle at all. We will discuss why in an upcoming video. In the next video we are going to go over some specific character sets that Oracle can use. See you then! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Suppor me! http://www.patreon.com/calebcurry Subscribe to my newsletter: http://bit.ly/JoinCCNewsletter Donate!: http://bit.ly/DonateCTVM2. ~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~ More content: http://CalebCurry.com Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://twitter.com/calebCurry Amazing Web Hosting - http://bit.ly/ccbluehost (The best web hosting for a cheap price!)
Html code for embedding videos on your blog
Text Comments (0)

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.