Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid subscript reference
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01135522
Message ID:
01135856
Vues:
12
Hey buddy ,
Im curious abt cursors.. Is there a way to reset(or flush) the cursors so that it can be used for a new update. I have different folders, all with "tlog.dbf" tables. I'm trying to import data frm all these tables into one Mysql "tlog" table(basically updating). I ran ur piece of code and it worked fine.But when I tried to update the Mysql tlog table using a different "tlog.dbf" table, it just wrote the same data that was placed previously into cursor crsTest..
SELECT PK, tempt FROM tlog;
       into CURSOR crsTest && With all WHERE, GROUP BY if needed
SQLPREPARE(lccon, [UPDATE mytab SET tdtime=?crsTest.TempT WHERE mytab.PK = ?crsTest.PK])
SELECT crsTest
SCAN
   SQLEXEC(lccon)
ENDSCAN
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform