Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie question re: PL/SQL conditional code
Message
Information générale
Forum:
Oracle
Catégorie:
PL/SQL
Divers
Thread ID:
00625442
Message ID:
00625849
Vues:
34
>Thanks, Mark. Still a kludge, but perhaps better than the one I was using because it was causing a full table scan.
>
>I'd still like to know how to do this with conditional logic. However, it may be a moot point for my immediate purposes because I'm thinking of switching to the Oracle driver where I can use the kinder, gentler way of returning cursors. In that version, based on an example you sent me, the SELECT statement appears (with OPEN MyCursor FOR) inside the BEGIN...END block, where I should be able to use conditional logic.

That would be correct. The following should work:
 BEGIN
  If nKey is null then
     open cursor...;
  Else
     open cursor...;
  End If;
 END;
END;
/
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform