Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select column filter
Message
De
17/03/2014 12:12:09
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01596608
Message ID:
01596678
Vues:
42
How about something like
SELECT mutable
nFields = AFIELDS(aFlds)
lcFields = ""
FOR iField = 1 TO nFields
     IF aFlds[iField,1] = "D_"
        lcFields = lcFields+","+aFlds[iField,1]
    ENDIF
ENDFOR

IF EMPTY(lcFields)
    MESSAGEBOX("No Fields Found")
ELSE
    lcSql = "SELECT " + SUBSTR(lcFields,2) + " FROM mutable INTO CURSOR myCursor READWRITE
    &lcSql
ENDIF
>Hi all,
>
>i want use a sql command.
>I want only filter the fields of my table beginning by D_ ( ex d_date … d_ stop )
>
>select *.d from mutable is bad…
>
>which command can i use ?
>
>Thank in advance
>
>
>bernhart
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform