Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL COUNT(*) to a variable
Message
De
10/06/2004 11:40:28
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
10/06/2004 09:42:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00912194
Message ID:
00912264
Vues:
9
Hi Tore

While that is true, it's more obscure.

>As you surely know, you don't need the brackets, ?laVal is enough to get the first element.
>
>>>I am trying to put the value of an sql count(*) operation into a variable rather then a table, can this be done?
>>>
>>>I've tried "SELECT count(*) FROM m:4vs WHERE date_l_in =today to y1" but I'm not getting a figure when I know it's >1.
>>
>>You can put result into an array
SELECT count(*) ;
>>  FROM m4vs ;
>>  WHERE date_l_in = today ;
>>  INTO ARRAY laVal
>>? laVal[1]
>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform