Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a primary key compound by two or more fie
Message
From
21/05/2001 15:15:17
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00509511
Message ID:
00509630
Views:
19
I was trying this one:
ALTER TABLE MyTable ADD PRIMARY KEY Field1 + Field2 + Field3 tag pk
but I get....Operator/operand type mismatch. Field2 is char, but that's not would be trouble, well, I think.

Sorry by my ignorance, if I have this records...
Field1 Field2 Field3
----------------------------
4 5 1
3 1 6

it will be a duplicate key? (i.e. 4+5+1=10 and 3+1+6=10 too!!!)


Thanks a lot!!!
glurrea
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform