Click here to Skip to main content
11,641,708 members (47,421 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 18: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 Mika Wendelius 260
1 DamithSL 248
2 Afzaal Ahmad Zeeshan 129
3 OriginalGriff 120
4 Sergey Alexandrovich Kryukov 80
0 Mika Wendelius 460
1 OriginalGriff 265
2 DamithSL 258
3 CPallini 169
4 Afzaal Ahmad Zeeshan 149


Advertise | Privacy | Mobile
Web03 | 2.8.150731.1 | 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