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!

Want column to be NOT NULL when using CREATE TABLE .. AS SELECT...

401820Apr 25 2007 — edited Apr 25 2007
Using the following,
create table TABLENAME
as
select
company,
to_char(sysdate,'YYYYMMDDhh24miss') last_update
from
COMPANIES;

I find the last_update is created as NULL (for the Null/NOT NULL check)

I believe it is not possible in 9i to alter the table to make a column NOT NULL.

Is there anything I can do in the creation of the table ?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 23 2007
Added on Apr 25 2007
3 comments
247 views