I am creating a table and I need to add a foreign key constraint on USER_TABLES.TABLE_NAME.
I am not quite sure how to do that?
I tried the following line of code:
CONSTRAINT FK_USR_TBLS FOREIGN KEY (TABLE_NAME) REFERENCES USER_TABLES(TABLE_NAME)
But got the following error when I tried to create the table:
ORA-00904: "TABLE_NAME": invalid identifier