Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need translation of basic foxpro commands into T/SQL
Message
De
02/09/2009 19:13:13
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01422348
Message ID:
01422360
Vues:
78
THANK YOU SO VERY MUCH! Your answers are extremely helpful and the links are perfect.

>David,
>
>See answers inline.
>
>>I'm using VFP9 to communicate with SQLServer database, using SQLEXEC(). I need to know the corresponding SQL commands for a few basic VFP commands:
>>
>>1) REPLACE table1.field1 WITH "HELLO" FOR "FRANCE" $ table1.field2
>
>UPDATE Table1 set field1 = 'HELLO' where Field2 like '%FRANCE%'
>>
>>2) REPLACE table1.field3 WITH table2.field4 for table1.field5 = table2.field6
>>
>
>UPDATE T1 set field3 = T2.Field4 from Table1 T1 inner join Table2 T2 on T1.field5 = T2.field6
>
>>3) COUNT TO x FOR table1.field7 = "JOE"
>
>select count(*) from Table1 where Field7 = 'JOE'
>
>
>See also
>
>http://www.w3schools.com/sql/default.asp
>
>and
>
>http://fox.wikis.com/wc.dll?Wiki~VFPSQL-TSQL-Mapping
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform