You are here:

Oracle/Zero Length condition

Advertisement


Question
While creating table, there is options like allow null or not, similarly is it possible to implement option like allow zero length or not.If possible,  what is the SQL syntax to implement it. Especially using alter statement for multiple columns.

Thank you.

Answer
Hi Saravanan,

You may wish to consult the Oracle 10gR2 CREATE TABLE reference: http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7002.h...

While there are options for null or not null columns, there is not 0 length or non-zero length option.

For the syntax and allowable parameters using the ALTER TABLE syntax:

http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3001.h...

Hope this helps.

Peter

Oracle

All Answers


Answers by Expert:


Ask Experts

Volunteer


Peter Choi

Expertise

I am a senior Oracle DBA, PeopleSoft HCM specialist and Project Manager with 15+ years experience. I have been working with PeopleSoft (HRMS/HCM 5, 7, 7.x and 8.9, 9.x), Oracle RDBMS (7.3 - 11gR2) on various Unix and MS-Windows platforms, and some Oracle Application Server (9i - 11gR1). I also have experience with the configuration and administration of PeopleSoft's Internet Architecture (PIA) and the Oracle 11g Fusion Middleware and Oracle Business Intelligence (OBI).

©2012 About.com, a part of The New York Times Company. All rights reserved.