mysql> create table provinsi_tb(
-> id int NOT NULL AUTO_INCREMENT,
-> nama varchar (50) NOT NULL,
-> diresmikan varchar (50) NOT NULL,
-> photo varchar (10000) NOT NULL,
-> pulau varchar (100) NOT NULL,
-> PRIMARY KEY (id)
-> );
Membuat table kabupaten_tb
mysql> create table kabupaten_tb(
-> id int NOT NULL AUTO_INCREMENT,
-> nama varchar (100) NOT NULL,
-> provinsi_id int (100) NOT NULL,
-> diresmikan varchar (100) NOT NULL,
-> photo varchar (1000) NOT NULL,
-> PRIMARY KEY (id)
-> );