Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Storage requirements of NCHAR columns

Re: Storage requirements of NCHAR columns

From: Frank van Bortel <frank.van.bortel_at_gmail.com>
Date: Wed, 12 Jul 2006 20:13:27 +0200
Message-ID: <e93dtb$n4u$1@news2.zwoll1.ov.home.nl>


Ross schreef:

> The Oracle docs clearly suggest (in several places) that NCHAR columns
> are defined in terms of the number of code units. If this is true (and
> I suspect it isn't), an NCHAR(30) could only store 10 three-byte
> characters.

Where? I can find (Globalization Manual, Ch 6, on the benefits of UTF8):
You can specify the length of SQL CHAR types in number of UCS-2 code points.

CAN, not: you specify, or you do specify.

Also: UCS-2 is fixed, 2bytes. Each character is 2byte (aka 1 code point).
Also: the *default* national character set (referring NCHAR) is AL16UTF16, so it just might be the documentation writers took that for granted

-- 
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
Received on Wed Jul 12 2006 - 13:13:27 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US