Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select from View yields old data from source tables?
Message
De
30/07/1999 19:27:59
 
 
À
30/07/1999 19:01:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00248442
Message ID:
00248448
Vues:
22
>I am doing a select SQL from a View that is optomistic table buffered agianst one table. The values in the view are different from those in the table because I have not sent any updates to the table yet. When I do the select naming the view in the FROM clause (the table isn't open and dosn't have the same name) the result set contains the values in the table, ie the oldvalues in the view.
>
>So my question is, how can I select the values actualy in the view short of scanning it.

The short answer is: you can't. Data in the view that isn't commited doesn't really exist as far as SQL SELECT statements are concerned. You have to use SCAN to go through the records, one by one. Sorry. Unless somebody knows a better way than I do...
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform