Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. CREATE OR REPLACE TRIGGER check_join_date
  2. BEFORE UPDATE OF join_date ON DOCTOR
  3. FOR EACH ROW
  4. WHEN (NEW.join_date > (SELECT CURRENT_DATE+1 FROM DUAL) )
  5. BEGIN
  6. RAISE_APPLICATION_ERROR(-20509,'Do not Enter Future Date..');
  7. END check_join_date;
  8. /
  9.  
  10. ORA-02251: subquery not allowed here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement