How to fix the Oracle error ORA-22817: subquery not allowed in the default clause?

In this post, you’ll learn more about the Oracle ErrorORA-22817: subquery not allowed in the default clause with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

ORA-22817: subquery not allowed in the default clause

Reason for the Error ORA-22817: subquery not allowed in the default clause

An attempt was made to use a subquery in the column default clause expression.

How to fix the Error ORA-22817: subquery not allowed in the default clause ?

You can fix this error in Oracle by following the below steps

Remove the subquery from the default clause.

Tags :

Leave Your Comment