Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to insert many rows into a test table?

Status
Not open for further replies.

wchuacs

MIS
Joined
Oct 12, 2000
Messages
21
Location
US
Hi,

how to we insert say 500 or 1000 rows of records in a test table for some scenarios testing ?

pls advice, and thank you.
 
hi wchuacs
the following syntax applies to visual foxpro, may help you in your situation

Code:
create table test01 (field01 c(5), field02 n(3))

for i = 1 to 500
value01 = alltrim(str(i))
value02 = i
insert into test01 (field01, field02) values (value01, value02)
endfor[\code]


Pete Bloomfield
Down Under
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top