Professional Documents
Culture Documents
NPM : 217510021
C:\Users\WIN 10>cd\xampp\mysql\bin
C:\xampp\mysql\bin>mysql -u root
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Database changed
MariaDB [test]> create table tbl_mahasiswa(npm int(9) not null primary key,
+----------------+
| Tables_in_test |
+----------------+
| tbl_dosen |
| tbl_mahasiswa |
+----------------+
MariaDB [test]> create table pegawai(nidn int(20) not null primary key,
MariaDB [test]> create table dosen(nidn int(20) not null primary key,
+----------------+
| Tables_in_test |
+----------------+
| dosen |
| matakuliah |
| pegawai |
| tbl_dosen |
| tbl_mahasiswa |
+----------------+
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+
+-------------+-------------+------+-----+---------+-------+
+-------------+-------------+------+-----+---------+-------+
+-------------+-------------+------+-----+---------+-------+
+----------------+
| Tables_in_test |
+----------------+
| dosen |
| matakuliah |
| pegawai |
| tbl_dosen |
| tbl_mhs |
+----------------+
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+
+---------+-------------+------+-----+---------+-------+
+----------------+
| Tables_in_test |
+----------------+
| dosen |
| matakuliah |
| pegawai |
| tbl_mhs |
+----------------+
MariaDB [test]>