MySQL – syntax examples: create table, primary and foreign keys

Last night I was asked for very basic example how create tables in MySQL and how to set keys up. I want to publish it here maybe it’ll be helpful for somebody, especially for beginners.

.