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 06:55:31
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:
01139610
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
>>>What do you think about age? Is there a simpler way to find person's age in years?
>>
>>(val(dtoc(date(),1)) - val(dtoc(m.bDate),1))/10000
>>
>>could be used for years.
>>Cetin
>
>How accurate it is? Can I rely on it?

I said "for years", so it's accurate for years resolution (typo on code - dtoc(m.bDate,1)).
I wrote Age class for high level of accuracy where it was important to know age to last detail (ie: drug dosage in an infant).
I don't know if you were serious saying all your validation was about 120 years. I would then only check if !empty(bDate). 120 part is not accurate in itself. Depending on source you might already be threating invalid dates as valid dates (ie: SQL server is in use w/o not allowing null in datetime fields and there were values which in fact meant to be empty).
PS; Did you read my note about GetUSeID(). I think it's the bottleneck and you could speed up just removing it.
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