Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple SQL
Message
 
 
À
13/02/2003 16:32:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00752908
Message ID:
00752922
Vues:
14
Try with this:
lnCounter=0
SELECT Inc(@lnCounter), Start, End from Counter
FUNCTION Inc(tnIncremental)
tnIncremental = tnIncremental + 1
RETURN (tnIncremental-1)
>Hello all

>I want to get this kind of output from a sql statement,
select start,end from counter
>in counter.dbf it had this data

>start end
>1 5
>6 7
>8 10

>but what i want is to add a column block with continious numbers.

>block start end
>1 1 5
>2 6 7
>3 8 10

Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform