Beruflich Dokumente
Kultur Dokumente
C:\xampp\mysql\bin>mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.6.21 MySQL Community Server (GPL)
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create table hubungan(kodehub varchar(5) not null, namahub varchar(15) not
null, primary key(namahub));
Query OK, 0 rows affected (0.27 sec)
mysql> create table data(Nama varchar(20) not null, alamat varchar(25) not null,
kode_pos int(10) not null, kodekota varchar(5) not null, email varchar(20) not
null, kodehub varchar(5) not null, telp int(10) not null);
Query OK, 0 rows affected (0.27 sec)
mysql>