Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Default column value of MAX +1 of column - possible in Oracle 9i?
On Tue, 29 Mar 2005 17:57:52 +0000, wrote:
> Comments embedded.
>
>> >>I do find that people who reject them out of hand have had limited or bad >>experience with them, either from other RDBMSs or older versions of Oracle.
Understandable. Such happens frequently when developers are in a hurry or don't understand the technology. You'ld be surprised how few developers actually understand how to use an RDBMS
>
> Whenever i have chosen development methods, triggers never seemed to
> be the first choice, as in the mentioned A) + B) example.
>
> Also notice that the trend goes towards API's being as
> RDBMS-independent as possible which leaves triggers more or less
> behind.
For this, I encourage reading Thomas Kyte's "Effective Oracle By Design". If companies have money to waste, them indepeenddence is OK, but ... well Chapters 1-3 say it all!
>
>
>
>>I also find it quite amusing that people, especially OO specialists, >>trumpet the glories of event-based programming in response to screen >>events, but reject the same model in response to database events. Which >>seems silly, as many screen map directly to tables, and many creen events >>(other than pretty-print) map directly to database events.
Yup. Funny how people stop thinking once they learn patterns.
>
>>> This separation generally is a good thing and holds true in some >>> cases. But not all. >>
>> >>For the sake of argument, would you please identify situations where this >>is NOT a good thing. I'm truly interested - even response by email is OK.
Aye, there's the rub.
>
>> >>I concur with your assessment that results from the changing roles and >>responsibilities. I just don't have to like the damage done in our >>industry by the 'lowering of standards'. The person who owns a high-end >>Mercedes Benz could take the car to the corner garage for an oil change, >>but probably will take it to a specialist ... I've often wondered why they >>stopped doing the same with their business tools.
>>I agree that patching through triggers, rather than solving problems >>though proper analysis, can end up with a less-than-optimal solution. In a >>similar fashion to the "guns don't kill people, people with guns do" >>argument, I have to ask - is the improper use of triggers the fault of the >>technology?
>> >>I also find that CONSTRAINTS are under-utilized. Developers tend to code >>constraints into application, or worse, code constraints into triggers. >>For the class of constraints that can be declared, this is absolute >>stupidity ... proof by blatant assertion (TM) <g>
Thus, I think we've exhaausted most of our discussion - we seem to agree that triggers are not necessarily evil, but the poor implementation and thoughtless utilization of triggers have abused the poor things.
And another myth has been discussed, and any debunking will probably be ignored to allow the myth to properly mature.
/Hans Received on Tue Mar 29 2005 - 12:15:39 CST
![]() |
![]() |