RE: String composite key vs auto_increment

2001-11-09 Thread Christian Stromberger
> > Disclaimer: SQL/database newbie here. > > Nothing wrong with being a newbie :-) Thanks for the help. > > Let's say I have a table of authors with columns for last name and first > > name. Is there any general guideline re using a separate > integer for the > > primary key as opposed to a co

RE: String composite key vs auto_increment

2001-11-08 Thread Steve Meyers
> That's not really true. You can use an auto_increment field as the primary > key and create a seperate UNIQUE index that combines both the firstname and > lastname fields that will be inforced for inserts. > Usually its easier to work with integers as primary keys, especially when > you referen

Re: String composite key vs auto_increment

2001-11-08 Thread Steve Meyers
> > Let's say I have a table of authors with columns for last name and first > > name. Is there any general guideline re using a separate integer for the > > primary key as opposed to a combination of the last and first names as the > > key? I ask because by using the names, this would prevent d

RE: String composite key vs auto_increment

2001-11-08 Thread Carsten H. Pedersen
> Disclaimer: SQL/database newbie here. Nothing wrong with being a newbie :-) > Let's say I have a table of authors with columns for last name and first > name. Is there any general guideline re using a separate integer for the > primary key as opposed to a combination of the last and first nam

Re: String composite key vs auto_increment

2001-11-08 Thread Bill Adams
Christian Stromberger wrote: > Disclaimer: SQL/database newbie here. > > Let's say I have a table of authors with columns for last name and first > name. Is there any general guideline re using a separate integer for the > primary key as opposed to a combination of the last and first names as th

RE: String composite key vs auto_increment

2001-11-08 Thread Chris Book
Mysql Subject: String composite key vs auto_increment Disclaimer: SQL/database newbie here. Let's say I have a table of authors with columns for last name and first name. Is there any general guideline re using a separate integer for the primary key as opposed to a combination of the last and f

String composite key vs auto_increment

2001-11-08 Thread Christian Stromberger
Disclaimer: SQL/database newbie here. Let's say I have a table of authors with columns for last name and first name. Is there any general guideline re using a separate integer for the primary key as opposed to a combination of the last and first names as the key? I ask because by using the name