Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

CHAR and BYTE semantics

441858Jun 6 2012 — edited Aug 1 2012
Oracle 11gR2/ Unix

Hi All,

I was wondering if there is a way to create or alter CHAR and VARCHAR2 columns without specifying the CHAR clause in the following SQL statement?
CREATE TABLE t1 (
id   NUMBER(10),
name   VARCHAR2(20 CHAR));
I know the default is BYTE and it can be changed by setting the NLS_LENGTH_SEMANTICS parameter to CHAR (as has been mentioned in ML Note: 144808.1), but is there any other way to do this? Should we even change it or just leave it at BYTE and just explicitly specify CHAR each time?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 29 2012
Added on Jun 6 2012
15 comments
2,029 views