× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Triggers serve a different purpose dont they? To fire off an action, based
on something happening in the database

With SQL triggers, you have even more flexibility, in that you can condition
the trigger based on values in the database row etc.

For me thats a great technique to have in the arsenal

----- Original Message -----
From: "jt" <jt@xxxxxx>
To: "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
Sent: Wednesday, February 25, 2004 5:15 PM
Subject: SQL Result Sets and triggers


> Interesting...  This may be a better question for M-L Tech list, but:  Is
> there much difference between, and any advantage to, stored procedures vs.
> triggers???  And, iirc, I saw a post on this list to the effect that
> triggers were a technique that "is no longer in favor", but I don't know
why
> it wouldn't be.
>
> | -----Original Message-----
> | [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of CWilt@xxxxxxxxxxxx
> | Sent: Wednesday, February 25, 2004 11:20 AM
> | Subject: RE: SQL Result Sets
> |
> |
> | Rob,
> |
> | May be hard to believe, but the standard iSeries DB2 manuals.
> |
> | I keep PDF versions of:
> | SQL Reference
> | SQL Programming Concepts
> | SQL Programming with Host Languages
> |
> | and just added the Redbook (mentioned in a post here)
> | Stored Procedures, Triggers, and UDF on DB2 UDB for iSeries.
> |
> | I hit them often for my own questions. Luckily, I have a pretty
> | good recall
> | for stuff that I simply read on the way to my own answers.
> |
> | In this case, I remembered seeing  the "dynamic results sets xx"  clause
> | during the many times I've looked at stored procedures.  Wasn't a big
deal
> | to open the PDF and copy-paste the example.
> |
> |
> | HTH,
> | Charles
>
>
>
> _______________________________________________
> This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
> To post a message email: RPG400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
> or email: RPG400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/rpg400-l.
>
>


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.