Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is faster: insert from memvar or insert fields?
Message
De
25/07/2006 17:04:56
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01139366
Message ID:
01139948
Vues:
17
>Cetin,
>
>Your code worked in 1 sec.
>
>However, Guid generated doesn't match what we currently have in our database:
>
>2F14C33D340747AE
>
>In other words, our GUID are always English letters and numbers and yours gives some unreadable chars.
>
>Our code took 4 sec. for 1K recs.

Of course they wouldn't match. I didn't sacrifice any bytes of the 16. Your version sacrifies half of the bytes (some bytes might be but not all IMHO) then does a hex+endian conversion.
On the same GUID value (after call to uuidcreate) apply str from guid and you'd see what I mean.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform