Funnily enough, I have absolutely no experience with MySQL foreign keys. I'd like to change that :) My database schema is rather complicated, and I have a lot of work ahead of me, but let's simplify things.
Suppose I have
Members Table:
id (PRIMARY KEY)
username
first_name
last_name
company
etc
Posts Table:
id (PRIMARY KEY)
message
member_id
member_username
etc
So now what I'd like to do is find a way to use foreign keys (I don't even know if this is possible or what it's designed for) to tell MySQL that posts.member_id relates back to members.id and posts.member_username relates back to members.username. Therefore, if someone changes their username and their record in the members table is updated, all of the posts by the member (whose records also include the username) get updated simultaneously as well.
Doable?