SQL Language (MOSC)

MOSC Banner

i need to delete orphaned records with the primary key referencing two columns

edited Jun 15, 2018 2:17PM in SQL Language (MOSC) 4 commentsAnswered ✓

ALTER TABLE table1 ADD (

  CONSTRAINT table_fk

  FOREIGN KEY (STATION_ID, DATETIME_ID)

  REFERENCES table2 (STATION_ID,DATETIME_ID)

  ENABLE VALIDATE);

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center