Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL and Memos
Message
 
À
07/07/2005 10:07:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01029926
Message ID:
01029974
Vues:
11
Russell,

If you know all the "block" values you could do this:
CREATE CURSOR mytable (drwno C(15), block M)
INSERT INTO mytable VALUES( "1", "10,11")
INSERT INTO mytable VALUES( "2", "10")
INSERT INTO mytable VALUES( "3", "11")
INSERT INTO mytable VALUES( "4", "11,12,13")

CREATE CURSOR myBlocks (block c(5))
INSERT INTO myBlocks VALUES("10")
INSERT INTO myBlocks VALUES("11")
INSERT INTO myBlocks VALUES("12")
INSERT INTO myBlocks VALUES("13")

SELECT mytable.drwno, myblocks.block ;
FROM mytable, myblocks ;
WHERE ","+mytable.block+"," LIKE "%,"+TRIM(myblocks.block)+",%"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform