Difference Between varchar and nvarchar datatype?
Answers were Sorted based on User's Feedback
The difference in varchar and nvarchar datatypes is
simple. Nvarchar stores UNICODE data. If you have
requirements to store UNICODE or multilingual data,
nvarchar is your choice. Varchar stores ASCII data and
should be your data type of choice for normal use
| Is This Answer Correct ? | 37 Yes | 7 No |
Answer / 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 |
Answer / munnabhaibcs
nvarchar means Your National Language data(font)
| Is This Answer Correct ? | 6 Yes | 15 No |
What is system stored procedures?
How to transfer an existing table from one schema to another schema in ms sql server?
select top 5 * from emp order by newid() my question is , how this query get executed?
Selet all the data from table where last name is n of employee
What is stretch database in sql server?
What is a view? is View updatable?
17 Answers IBM, L&T,
What is Index Segmentation ?
What are scalar functions?
How many null values we can have in a unique key field in sql server?
i have a table student like sname ----- ram ram ram raj raj raj i need the output like sname ----- ram raj ram raj ram raj
Explain the concepts and capabilities of sql server?
how to find nth highest salary
103 Answers Cognizant, IBM, NexGen, Oracle,
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)