-157 ONLY A TABLE NAME CAN BE SPECIFIED IN A FOREIGN KEY CLAUSE. object-name IS NOT THE NAME OF A TABLE.
Explanation
The indicated object was identified in a FOREIGN KEY clause of a CREATE or ALTER TABLE statement. A FOREIGN KEY clause must identify a table.
System action
The statement cannot be processed.
Programmer response
Correct the statement to specify a table name in the foreign key clause.
SQLSTATE
42810