versuviusx
Registered User.
- Local time
- Yesterday, 23:20
- Joined
- Nov 1, 2006
- Messages
- 15
ok
currently i have a table with these fields:
CustomerID
firstName
lastName
Billing address
city
State
PhoneNumber
EmailAddress
Sex
Username
password
ok my question is what kind of field should the CustomerID be?
should it be autonumber or just text
the reason i ask is that if i use autonumber and try to connect customerID to another Primary Key in a different table it doesn't work. so if i keep it all the primary keys text then it works.
the other problem is how do i ensure referential integrity with a 1 to many relationship. and what exactly is referential integrity?
currently i have a table with these fields:
CustomerID
firstName
lastName
Billing address
city
State
PhoneNumber
EmailAddress
Sex
Username
password
ok my question is what kind of field should the CustomerID be?
should it be autonumber or just text
the reason i ask is that if i use autonumber and try to connect customerID to another Primary Key in a different table it doesn't work. so if i keep it all the primary keys text then it works.
the other problem is how do i ensure referential integrity with a 1 to many relationship. and what exactly is referential integrity?