Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select column filter
Message
De
15/03/2014 16:26:30
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
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:
01596609
Vues:
63
Bernhart,

all what I can think of is

get table structure via
COPY STRUCTURE EXTENDED TO FileName
Field "Field_Name" contains all Fields

now something like (does not work)
select Source
COPY STRUCTURE EXTENDED TO tabStruct
sele 0
use tabStruct
lcHelp = ""
scan for Field_Name='D_'
lcHelp = lcHelp+','+alltrim(Field_Name)
endscan

lcSQL = "SELECT "+strtran(lcHelp,',','',1,1)+" FROM Source INTO CURSOR curXYZ NOFILTER"
&lcSQL
HTH

Lutz
>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
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform