Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sequence

Status
Not open for further replies.

tjones9034

Programmer
Aug 25, 2003
33
0
0
US
Hi all,

I have a sequence on a column which gets populated whenever a any user inserts a new record. Now we would like to restrict the sequence population only to certain users and allow superior users to insert their own values in the field via Form rather than the sequence. Is there any way to disable the sequence only if these users sign in to the application?

Right now we have SELECT Site_Seq.NEXTVAL
INTO :Site.Site_ID
FROM DUAL;

There is a parameter created to check for permissions to this application....example: IF :parameter.P_Level_Precedence >= 60


The levels are from 10 - 70. We want to be able to allow 60 and above to insert values rather than using the sequence. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top