Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to represent a Memo fields in an Select - Union comm
Message
 
 
À
19/07/2002 16:41:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00680637
Message ID:
00680667
Vues:
18
You can do this way.
CREATE CURSOR crsTemp (specs M)
Select Lot, style, specs ;
  from lot, crsTemp ;
  where .... ;
Union
Select SPACE(LEN(lot.lot)) as Lot, style, specs ;
  from Specs ;
  where ...
Make sure that the size of the fields in two selects match otherwise you'll get the same error.

>How can I represent memo fields in Select - Union statement?.
>I have 2 tables with s common field but one of these table has a memo field and I would like to include it in my dataset.
>
>Table 1: Lot (char), Style (Char)
>Table 2 Style (char),Specs(memo)
>I tried with a similar next sql command but I got trhe next error:
>"SELECTs are not UNION compatible"
>
>Select Lot,style," " as specs from lot where .... ;
>Union
>(Select " " as Lot,style,specs from Specs where ...)
>
>Thanks in advance
>Martin
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform