How to fix the Oracle error ORA-56901: non-constant expression is not allowed for pivot|unpivot values?

In this post, you’ll learn more about the Oracle ErrorORA-56901: non-constant expression is not allowed for pivot|unpivot values with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

ORA-56901: non-constant expression is not allowed for pivot|unpivot values

Reason for the Error ORA-56901: non-constant expression is not allowed for pivot|unpivot values

Attempted to use non-constant expression for pivot|unpivot values.

How to fix the Error ORA-56901: non-constant expression is not allowed for pivot|unpivot values ?

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

Use constants for pivot|unpivot values.

Tags :

Leave Your Comment