Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SPT - multiple SELECTs with single result set
Message
 
 
À
07/07/2006 13:19:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01134421
Message ID:
01135407
Vues:
17
Jim,

You can stack up multiple SQL commands inside a single SPT call. You should be careful because all these SQL statements can be interpretted as a single monolithic transaction on the server and there is a possibility that it may cause significant blocking issues. That would not be the case if you just did this as a SP which it really should be.

>It's a series of SQL SELECTs with no intermediate processing.
>
>It roughly goes as follows:
>
>- SELECT a subset of records with specific characteristics (has a UNION)
>- SELECT some records INNER JOINed on first above
>- 4 UNIONed SELECTs to get additional records of interest also INNER JOINed on first above
>- FULL JOIN of last 2 above, producing result set of interest. All other results ignored.
>
>It just seems to me that I should be able to do this using SPT, returning the single final cursor of interest.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform