Trouble defining foreign keys (MySQL)
问题 Working on an introduction to databases class assignment and running into trouble on a few foreign key. I've done a few foreign keys but every now and then I get stumped and can't figure out why it doesn't work. This example is a university database and I have section describe section; +--------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +--------------+-------------+------+-----+---------+-------+ | course_id | varchar(7) | NO | PRI |