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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creting 1 million dummy records

Status
Not open for further replies.

edrossi

Programmer
Jan 24, 2002
42
US
I need to find a way to create 1 million records in FoxPro, starting with an empty table. The final result will have the same characters in for 1 million rows and 1 column. Here is an example of what needs to be created:

CODE
-------
NMZ
NMZ
NMZ
NMZ
NMZ
NMZ
NMZ

Any help that can be provided would be greatly appreciated.

Thanks,

E
 

Code:
CREATE TABLE MyTable (Code C(3))

FOR i=1 TO 1000000
    INSERT INTO MyTable VALUES ('NMZ')
ENDFOR


 
edrossi,

I hope you don't min dme asking, but why do you want to create this table?

Stewart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top