SQL Language (MOSC)

MOSC Banner

why can nvarchar2 column only specify half the max size (32767)?

edited Dec 1, 2022 4:17PM in SQL Language (MOSC) 5 commentsAnswered

alter table test add (n_desc nvarchar2 (16384)); --> error

alter table test add (n_desc nvarchar2 (16383)); -->OK

Is it due to nvarchar2 uses two bytes?


(19c max_string_size=extended)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center