Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select SUM()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Divers
Thread ID:
00991651
Message ID:
00991657
Vues:
17
It's a change in VFP9 which makes result of the query with SUM() ANSI Standard compliant. You can easily get what you want
SELECT CAST(NVL(SUM(T1),0) AS int) AS t1 FROM T1
>CREATE CURSOR T1(t1 I NOT NULL)
>SELECT SUM(T1) AS t1 FROM T1
>
>This returns a cursor with a single NULL value.
>
>Wouldn't it be better to return a 0? And by better I am thinking less likely to break my existing code.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform