System _Generate Number

How can you generate the system _generate number in forms automatically
hint: IN FORMS WE CREATING ONE DATA BLOCK BUT ONE CLOUMN (EMPLOYEE_ID) THIS COLUMN GENERATE THE ID NUMBER AUTOMATICALLY WITH OUT CREATING SEQUNENCE

Questions by akbuhari

Showing Answers 1 - 3 of 3 Answers

usmanahmad

  • Aug 18th, 2008
 

1: EMPLOYEE_ID := DBMS_RANDOM.STRING('X',6); ---- its generates unique EMPLOYEE_ID six char long

2: Then check whether newly generated id is already in DB. Create a cursor which select and return ids and the match both vales. If both are equal then go back to step 1

3: you unique value has created.

I hope this will help you.

Usman

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions