How do I define cursors in mysql as in Oracle?

Here is an example in Oracle:::

Cursor CurPerson is
           Select Arstall_Godkj_Stkomp
           From  Person
           Where Fodselsdato  = inFDato   And
                 Personnr     = inPNr;;

Begin
    Open curPerson;
    Fetch CurPerson into refGodkjent;
    If curPerson%Found Then ................................


How  do I write this in mysql?

Thank you for any help...

Yamuna


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to