Re: Primary Key pairs and auto-incrementing

2001-08-30 Thread Carl Troein
On 29-Aug-01, Paul DuBois wrote: > Create a single PRIMARY KEY that consists of the two columns chapter and > section, and make section an AUTO_INCREMENT column. When you insert > rows, set chapter to the proper chapter number and section to NULL. > This will cause MySQL to generate independent

Re: Primary Key pairs and auto-incrementing

2001-08-29 Thread Paul DuBois
At 10:37 AM -0400 8/29/01, Ferrara, Joseph C wrote: >I want to create a table with two Primary Keys. The first key is a category >field, and the second is auto-incremented. Example: Key 1=Chapter name, Key >2 =section number. For example, (Chapter1, 1) (Chapter1, 2) (Chapter1, 3) >then with a n

RE: Primary Key pairs and auto-incrementing

2001-08-29 Thread Chris Bolt
> I want to create a table with two Primary Keys. The first key is > a category > field, and the second is auto-incremented. Example: Key > 1=Chapter name, Key > 2 =section number. For example, (Chapter1, 1) (Chapter1, 2) (Chapter1, 3) > then with a new Cheaper, I want to restart the auto-incre

Primary Key pairs and auto-incrementing

2001-08-29 Thread Ferrara, Joseph C
I want to create a table with two Primary Keys. The first key is a category field, and the second is auto-incremented. Example: Key 1=Chapter name, Key 2 =section number. For example, (Chapter1, 1) (Chapter1, 2) (Chapter1, 3) then with a new Cheaper, I want to restart the auto-incremented field