Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Appending one field only into another table sql statemen
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00580457
Message ID:
00580463
Vues:
17
Hi!

You cannot do this within a single statement.

"APPEND FROM" could not be part of the SELECT - SQL statement.

So, in your case this will look probably as following 3 commands:
Select tableA.field5 as fieldtotal ;
 FROM  tableA INNER JOIN tableB ;
   ON  tableA.namefield = tableB.namefield ;
   WHERE tableA.datefield = tableB.datefield ;
   into cursor crsTemp
SELECT MyTableForAppending
APPEND FROM dbf('crsTemp')
>Can someone please check to see what is incorrect in the syntax of this statement? I am trying to append just the records of one field from a table into another table where the dates are the same in both tables and the records are inserted providing the names are the same in both tables.
>
>Select tableA.field5 as fieldtotal ;
> FROM tableA INNER JOIN tableB into cursor crsTemp ;
> append from dbf('crsTemp') ;
> ON tableA.namefield = tableB.namefield ;
> WHERE tableA.datefield = tableB.datefield
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform