Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE SEQUENCE subject_id_seq
- INCREMENT BY 1
- START WITH 101
- NO CACHE;
- CREATE or REPLACE FUNCTION next_sub_id RETURN VARCHAR2
- AS
- BEGIN
- RETURN(βFITβ || TO_CHAR(subject_id_seq.NEXTVAL, βFM09999999β));
- END;
Add Comment
Please, Sign In to add comment