Skip to Main Content

SQL & PL/SQL

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!

Not null constraint on multiple columns

977650Oct 30 2013 — edited Oct 30 2013

Hi,

I have a table employee with following defination :-

CREATE TABLE EMPLOYEE(
ID NUMBER,
FIRST_NAME VARCHAR2(100),
MIDDLE_NAME VARCHAR2(10),
LAST_NAME VARCHAR2(100),
DOB DATE);

My requirement is that i want to have a not null constraint on all 3 name columns.

Something like

alter table employee modify NVL(FIRST_NAME,NVL(MIDDLE_NAME,LAST_NAME)) not null;

How can i achieve this?

This post has been answered by bencol on Oct 30 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 27 2013
Added on Oct 30 2013
4 comments
3,318 views