4
Answers

How will bytes it will take in sql???

Anurag Singh

Anurag Singh

9y
481
1
Hi,
 
I have a column NAME and I am defining its datatype like: varchar(50), char(50), nvarchar(50) and nchar(50). And after that if I'll print 'ANURAG', then how much bytes it will take in all conditions???
 
Means:
 
Name varchar(50) then I'll print 'ANURAG' then bytes=???
Name char(50) then I'll print 'ANURAG' then bytes=??? 
Name nvarchar(50) then I'll print 'ANURAG' then bytes=??? 
Name nchar(50) then I'll print 'ANURAG' then bytes=??? 
 
Thanks:
Anurag Singh 

Answers (4)