I am wondering about this case with Oracle 12c;
- Table X has column A, with default value
'default'
andNOT NULL
modifier - I insert a new row into Table X, and column A has value
'not-default'
- I wish to update column A of the above row to the default value of the given column, namely
'default'
Is there a short way of doing this without knowing the default value? Can I do something like;
UPDATE X SET A = DEFAULT_VAL(A) WHERE ...
Trying to update to null obviously triggers a ORA-01407: cannot update ("schema"."X"."A") to NULL
, I'd like to know if there is such a feature on Oracle.