Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a manual record from a SQL
Message
De
17/07/2001 02:35:15
 
 
À
17/07/2001 02:10:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00531353
Message ID:
00531385
Vues:
10
>One comment and a solution.
>The comment:
>Naming an alias GROUP and using it in a query can only cause trouble.
>The solution:
>create a one record table of any structure, then
>SELECT Description AS Descript,Numero FROM GROUP WHERE IRegion>0_ ;
>UNION SELECT 'Public',0 FROM OneRecordTable ORDER BY 2
>Notes:
>1. You don't need to use the AS ... syntax in the UNIONed parts of the query.
>2. The length of GROUP.Description must at least be 6 or 'Public' will be truncated in the extra record.

Thanks, it works.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform