Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Random records
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00935859
Message ID:
00935862
Vues:
15
How about this:
FUNCTION getNewId

loGUID = CreateObject ("Scriptlet.Typelib")
lcGUID = SUBSTR (loGUID.GUID, 2, 36)
loGUID = NULL
RETURN lcGUID

...

SELECT TOP 10 MyTable.MyField, getNewId () AS GUID FROM MyTable ORDER BY GUID
HTH

>By any chance anyone knows of a routine/function similar to that in sql, newid(), to generate random records from a table in vfp?
>
>The sql select statement, select top 10 id from tblTest order by newid()
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform