I am trying to add in a new column to my SCHOOL table in which this column will have 3 possible venues - Building A, Building B and Building C.
I tried coding it as follows
ALTER TABLE SCHOOL
ADD BuildingName NOT NULL
DEFAULT 'Building A', 'Building B', 'Building C' FOR BuildingName;
and I got the following error. Tried enclosing the default values such that it is {'Building A', 'Building B', 'Building C'}, still it is the same error.
Error report -
ORA-00904: : invalid identifier
00904. 00000 - "%s: invalid identifier"
Could it be I am unable to set a list of default values? Or am I setting it wrongly?
LESSONtable, why does the code change theSCHOOLtable?