Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Various False Errors with VFP9SP1 OLEDB and .NET2
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01095080
Message ID:
01095771
Vues:
17
You would get the same result in VFP9 as if you run such query agains MS SQL Server or any other ANSI Standard compliant backend.

>I found it. That seems to make things entirely non-intuitive.
>Select SUM(AMOUNT), COUNT(*) from SomeTable where NAME="SMITH"
>If there are no SMITHs, the query should either return no records or a record with everything zero. Instead it apparently returns data with one or more of the fields as NULL in the one-record recordset. In my actual code, I'm using SQL like :
>Select str(sum(Amount),5) as cNAmount, str(Count(*),5) as cNCount...
and I'm getting back nulls.
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform