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

using create table command and indexes

Status
Not open for further replies.

Keepontrying

Programmer
May 12, 2003
67
US
I am using the create table command to create a free table. Do I have to used a database to use a primary key?

I try this
create table employee.dbf free;
(empid c(10) Primary Key,;
address c(50))

a error message tell me this function is not support in a non-dbc mode.

Thanks

 
try the simplest:

create table employee (empid c(10), address c(50))
index on empid to employee


kilroy [trooper] phils.
 
Hi

There is some syntax error in the above your code.. It is little funny that it is not visible, probably a space issue or whatever.

Because, when I cut and paste in command windows, it gives the error first time and when I just use a space bar, it becomes correct.

Try the following code,

create table employee free (empid c(10) Primary Key,;
address c(50))

:)


____________________________________________
ramani - (Subramanian.G) :)
When you ask VFP questions, please add VFP version.
 
Hi sorry, I had some other issue in my testing...

You cannot have primary key in free table. :)



____________________________________________
ramani - (Subramanian.G) :)
When you ask VFP questions, please add VFP version.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top