Create new table, or other wise copy existing table. Then Create Sequence. While Inserting data into database using bellow insert query. Every time empno before added "
PREDIFINEDVALUE00 ".
ex: PREDIFINEDVALUE001
PREDIFINEDVALUE002
PREDIFINEDVALUE003
...
etc.
Queries:
CREATE TABLE EMP_ONE AS SELECT * FROM EMP;
CREATE SEQUENCE EMP_ONE_SEQ
MINVALUE 1
MAXVALUE 999999999999999999999999999
START WITH 1
INCREMENT BY 1
CACHE 20;
SELECT * FROM ALL_SEQUENCES WHERE SEQUENCE_NAME = 'EMP_ONE_SEQ';
SELECT EMP_ONE_SEQ.CURRVAL FROM dual;
INSERT INTO EMP_ONE SELECT 'PREDIFINEDVALUE00'|| EMP_ONE_SEQ.NEXTVAL, ENAME, JOB, MGR,
HIREDATE, SAL, COMM, DEPTNO FROM EMP;
Build Your Own Test Framework
-
[image: Build Your Own Test Framework]
Learn to write better automated tests that will dramatically increase your
productivity and have fun while doing so...
1 hour ago
No comments:
Post a Comment
I'm certainly not an expert, but I'll try my hardest to explain what I do know and research what I don't know.