Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: brutally simple question - number of triggers on a table
>Whatever happened to the good old;
>
>select max(num_pk) from table; to populate the PK? ;-)
>
Awhile back, I suddenly inherited a Cold Fusion application.
(Suddenly - as in my first day on the contract the only other programmer
informed me he had turned in his two-week notice some days ago - so I =
had to
take over his function plus do mine.)
I had never seen Cold Fusion before.
And, of course, there were some problems with the application. :)
A huge percentage of them were caused by the programmer believing the =
advice
in Ben Forta's book on using Cold Fusion.
His advice to populate sequence generated primary key values was as = follows:
His advice on populating foreign key columns in child tables, right =
after
the parent record was created with the above method was as follows:
So, the magic questions are:
I'll answer "b" for you. Thousands and thousands and thousands and thousands.
-- http://www.freelists.org/webpage/oracle-lReceived on Fri Apr 22 2005 - 15:59:51 CDT
![]() |
![]() |