Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to SKIP rows containing big numbers
Message
From
12/12/2005 13:17:10
 
 
To
12/12/2005 12:51:12
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01076668
Message ID:
01077240
Views:
24
>>Do you want to discard these records ?
>
>Yes.
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 (?test)")
  select 0
  use (juststem(failid[m.i,1]))
  * because you have a rollback, you have to do a preventive check
  COUNT FOR abs(test)<=9999999999 AND SQLEXEC(nconn)>0
endfor
SQLCOMMIT( nconn )
Previous
Reply
Map
View

Click here to load this message in the networking platform