Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a manual record from a SQL
Message
From
17/07/2001 02:35:15
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00531353
Message ID:
00531385
Views:
11
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform