Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to SKIP rows containing big numbers
Message
De
12/12/2005 12:51:12
 
 
À
09/12/2005 17:34:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01076668
Message ID:
01077222
Vues:
22
>>How to skip such rows when upsizing data using VFP code?
>
>Which code ?
SQLSETPROP( nconn,"Transactions",2)  && this increases upsize speed a lot
adir( failid, '.dbf')
for i=1 to alen(failid,1)
  SQLEXEC( nconn, "CREATE TABLE "+juststem(failid[m.i,1])+ ;
  " ( id serial primary key, test numeric(10))")  && note: table field creation skipped
  SQLPREPARE(nconn,"INSERT INTO "+juststem(failid[m.i,1])+" VALUES (?m.test)")
  select 0
  use (juststem(failid[m.i,1]))
  scan 
    SCATTER MEMVAR memo 
    * error in this line discards all inserted rows:
    SQLEXEC(nconn)
    endscan
endfor
SQLCOMMIT( nconn )
>Do you want to discard these records ?

Yes.
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform