Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Oracle Functions
Message
 
 
À
14/11/2002 17:56:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00722984
Message ID:
00722988
Vues:
23
Try this instead:
   CREATE SEQUENCE PersonSN
   INCREMENT BY 1
   START WITH 100001
   NOCACHE;

   ** Create a Server Function "FNext" to return the next sequence from
   ** Person.

   CREATE OR REPLACE FUNCTION FNext
      RETURN NUMBER
    IS
      Count1 NUMBER(10);
   BEGIN
      SELECT PersonSN.nextval INTO Count1 FROM dual;
    RETURN Count1;
   END;
   /

>
>Select FNext from dual
>
>
>Thanks for your help
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform