Cause
create table foo (... ref. con. ...) as select ...;
Action
Create the table as select, then alter the table to add the constraints afterwards.
Error Message
Create as select with referential constraints not allowed
create table foo (... ref. con. ...) as select ...;
Create the table as select, then alter the table to add the constraints afterwards.