Right, I'm confused now. I can see how to set an index on a field although I can't see how this helps me to link the tables through a reference id.
Like I said in my first post I have two tables like this:
User Table ImageTable
ID ID
Name Location
DOB Size
User table is populated every time somebody signs up through the sign up form, Image table is not. So obviously I want the ID's of both tables to stay the same so I can reference them when the Image table is updated.
ImageTable needs to reference the User table so which ID field do I index? And how does Imagetable know to look in UserTable for its ID?
I know how I would do this in Oracle with primary and foreign keys although I see MySQL is slightly different and I don't understand this indexing business to well.
??? ???