Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record not selected by a SQL query
Message
De
28/10/2018 22:11:22
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01662848
Message ID:
01662872
Vues:
38
In addition to Als remarks - and perhaps aiming at similar problem, which alias for vfp table function -
recno() is unreliable on joins.

If recno("kartei") is needed, filter in first step to temp cursor, do inner join in discrete step.



>Hi there,
>
>in myprogram I build this query:
>
>
>select kartei.* , RECNO() as satznr, kunden.vorname, kunden.name1, kunden.name2,
> kunden.name3, kunden.strasse, kunden.plz, kunden.ort from kartei  inner join kunden 
>on kartei.kundennr == kunden.kundennr where kartei.vormerker = .T. 
>and (kartei.nummer == this.cIsbn) and not DELETED() into cursor myvormerker 
>READWRITE order by best_dat DESC
>
>
>by assigning it to a var like
>
>cSelect = "Select...."
>
>And run it
>
>&cSelect
>
>Unfortunately this works only if I have more than one record fulfilling the conditions.
> If there is only one record matching it, _tally returns 0
>If I run the query in the command window, it works.
>Hay anybody some help für me?
>
>Best regards
>
>Thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform