Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i having a column name order_no and that column should be autoincremented by 1 and i want to check if the order_no value is divisible by 3 and in next day order_no values should be cleared.how is it possible to do in oracle ?
Posted
Updated 29-Jun-14 20:21pm
v2
Comments
Jörgen Andersson 30-Jun-14 17:43pm    
Use a sequence
CHill60 30-Jun-14 19:37pm    
That's a somewhat contrived scenario. Every 3rd order gets cleared the next day???? Better solution would be to work out a proper "rule" for clearing the orders ... e.g. more than 3 days old

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900