Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index
Message
 
À
10/04/2012 04:14:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Re: Index
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01540782
Message ID:
01540783
Vues:
99
This message has been marked as the solution to the initial question of the thread.
Hi Mohammed,
INDEX ON PADL(A,11,'0')+IIF(C=0,'99999999999',PADR(C,11,'0'))+IIF(C=0,PADR(B-99999999999,11,'0'),PADR(B,11,'0')) TAG I01
MartinaJ

>hi all,
>i need to make index or select....
>thanks
>
>CREATE CURSOR mycur(A n,B n,C n) 
>INSERT INTO mycur VALUES(1,42,2)
>INSERT INTO mycur VALUES(1,45,0)
>INSERT INTO mycur VALUES(1,23,4)
>INSERT INTO mycur VALUES(1,55,1)
>INSERT INTO mycur VALUES(1,70,0)
>INSERT INTO mycur VALUES(1,13,6)
>**********************
>INSERT INTO mycur VALUES(2,60,1)
>INSERT INTO mycur VALUES(2,80,0)
>INSERT INTO mycur VALUES(2,30,4)
>INSERT INTO mycur VALUES(2,20,0)
>INSERT INTO mycur VALUES(2,10,8)
>
>******************************
>i need result as
>a    b     c
>1    55    1 
>1    42    2
>1    23    4
>1    13    6
>1    70    0
>1    45    0 
>2    60    1
>2    30    4
>2    10    8
>2    80    0
>2    20    0
>
>
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform