Click here to Skip to main content
11,410,529 members (57,940 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Oracle
Hi Friends,

I am totally unfamiliar with Oracle.I want to add a column with datatype nvarchar(100 bytes).
I used
ALTER TABLE PH_MASTER_STORE Add ADDRESS1 nvarchar2(100) NOT NULL;
It added that column with nvarchar2(100 Char).How to get size in bytes of a nvarchar2 column in Oracle? Please help me.....


Thanks in advance.....

Vineetha.K.R
Posted 30-Jan-13 19:12pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

select Sum(DATALENGTH(col)) FROM Table
  Permalink  
Comments
Jörgen Andersson at 2-Feb-13 15:59pm
   
On Oracle it's just LENGTH

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 8,755
1 OriginalGriff 6,915
2 Maciej Los 3,390
3 Abhinav S 3,248
4 Peter Leow 3,059


Advertise | Privacy | Mobile
Web03 | 2.8.150414.5 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100