LittleSmudge
Programmer
I've created a table using the MySQL Control Centre and set two fields to be a Joint primary key. At least that's what I was intending to do and what would have happened if it had been an Access database ( I'm well used to working in Access )
What I seem to have ended up with is a table with two sepatate field each marked as a primary key and each one preventing duplicate entries in the separate fields.
I think that If I'd used the command line SQL to Create the table
CREATE TABLE tblLinkPersonDept (
PersonRef MediumInt;
DeptRef MediumInt
PRIMARY KEY ( PersonRef, DeptRef );
Then I'd have got what I want.
However, Is there a command line instruction to change the table I have to what I need ?
Or does anyone know what I'm doing wrong in the Control Centre ?
G LS
accessaceNOJUNK@valleyalley.co.uk
Remove the NOJUNK to use.
What I seem to have ended up with is a table with two sepatate field each marked as a primary key and each one preventing duplicate entries in the separate fields.
I think that If I'd used the command line SQL to Create the table
CREATE TABLE tblLinkPersonDept (
PersonRef MediumInt;
DeptRef MediumInt
PRIMARY KEY ( PersonRef, DeptRef );
Then I'd have got what I want.
However, Is there a command line instruction to change the table I have to what I need ?
Or does anyone know what I'm doing wrong in the Control Centre ?
G LS
accessaceNOJUNK@valleyalley.co.uk
Remove the NOJUNK to use.