Guest User

Untitled

a guest
Oct 22nd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. CREATE SEQUENCE subject_id_seq
  2. INCREMENT BY 1
  3. START WITH 101
  4. NO CACHE;
  5.  
  6. CREATE or REPLACE FUNCTION next_sub_id RETURN VARCHAR2
  7. AS
  8. BEGIN
  9. RETURN(β€˜FIT’ || TO_CHAR(subject_id_seq.NEXTVAL, β€˜FM09999999’));
  10. END;
Add Comment
Please, Sign In to add comment