Created
March 22, 2020 07:56
-
-
Save tonyvich/b81643b63cb4d228f8947919e349b656 to your computer and use it in GitHub Desktop.
Database Definition Select Autopopulate php tutorial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE countries ( | |
country_id INT AUTO_INCREMENT PRIMARY KEY, | |
country_name VARCHAR(255), | |
country_code VARCHAR(3) | |
); | |
CREATE TABLE towns ( | |
town_id INT AUTO_INCREMENT PRIMARY KEY, | |
town_name VARCHAR(255), | |
country_code VARCHAR(3) /* The country of the current town */ | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment