Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Difference Between varchar and nvarchar datatype?

Answer Posted / p.pradeepa

Varchar2(s) is used to define a variable length character
of maximum size s.

Nvarchar2: Same as VARCHAR2 except that the column stores
values in the National CS ie you can store values in Bangla
if your National CS is BN8BSCII .If the National CS is of
fixed width CS (all characters are represented by a fixed
byte say 2 bytes for JA16EUCFIXED) then NVARCHAR2(30)
stores 30 Characters.

If the National CS is of variable width CS (some characters
are represented by 1 byte some by 2 bytes as in UTF8 ) then
NVARCHAR2(30) stores 30 bytes.
The maximum column size allowed is 4000 bytes.
Ex: CREATE TABLE tab1 (col1 NVARCHAR2(2000)); will create a
table with one NVARCHAR2 column of 2000 characters in
length (stored as 4000 bytes because each character takes
two bytes) using JA16EUCFIXED as the national character
set:

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create “dependant” parameter “make, model, year”

122


How will you make an attribute not process? : sql server analysis services, ssas

1011


What are the types of indexing?

1031


What is difference between views and tables?

914


Which table keeps the locking information?

881


What is spid in sql server profiler?

1028


What are the source of constraints?

860


Tell me what is the stuff and how does it differ from the replace function?

935


What is named query? : sql server analysis services, ssas

909


What are different types of table joins?

964


What is the difference between update lock and exclusive lock?

913


How to convert a table data in XML format in sql server?

2495


What do you mean by table and field in sql?

969


What does top operator do?

965


Is sql server a database?

926