Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ask for advice
Message
 
À
06/03/2008 14:12:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01299392
Message ID:
01299439
Vues:
13
>It's faster for query, but you also risk that the information become corrupted if the Qty and/or Price fields are updated and the total isn't. It also slow down the INSERT/UPDATE.
>
>>I thought that as long as the computed column was deterministic (something like total AS (Qty * Price)) then it would be calculated at INSERT or UPDATE time only and the column could be used as an index and then optimizable...

Nope. There is no such possibility.
That is Computed column. You don't have to do anything for it. It is calculated by SQL Server depending of formula you put.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform