Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UNION SELECT... please correct me
Message
De
27/10/1998 07:47:06
 
 
À
27/10/1998 07:13:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00150818
Message ID:
00150841
Vues:
14
>Kak dela, Denis?
>Privet Arne :) Moglo byt' i luchshe ;)

I recieve error message when I compile my program ...
in following line :

"UNION ;
SELECT TOP 1 * ;"....

I recieve error message "Command is missing required clause (Error 1221)"
Spasibo.
Denis.

>>My code:
>>SELECT TOP 1 * ;
>>FROM myDatabase!myTable ;
>> WHERE myTable.cod = pCod ;
>> AND myTable.price >=pPrice ;
>> UNION ;
>> SELECT TOP 1 *;
>> FROM myDatabase!myTable;
>> WHERE myTable.cod = pCod ;
>> AND myTable.price <=pPrice ;
>>ORDER BY mytable.price ;
>>INTO CURSOR curPrice
>>
>>I receive error message... What the problem ?... OR I do't use TOP 1 AND UNION ?
>>Thanks for your messages.
>>Denis.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform