Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Divide my table
Message
From
15/10/2004 07:25:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
15/10/2004 05:05:28
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00951662
Message ID:
00951678
Views:
6
>hi all,
>
>i have table(test) with 500000 records,
>
>i need to divide my table (test) to 5 tables evrey table have 100000 records
>with names as test1....test5.
>
>thanks.
>
>m.qasem
use test
go top
i = 0
do while not eof()
  copy to ("test" + trans(i)) next 100000
  skip
  i = i + 1
enddo
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform