Professional Documents
Culture Documents
C:\Users\Asus>cd..\..
C:\>cd xampp\mysql\
C:\xampp\mysql>cd bin
C:\xampp\mysql\bin>mysql -u root
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
+ +
| Database |
+ +
| barang |
| information_schema |
| mysql |
| penjualan |
| performance_schema |
| phpmyadmin |
+ +
Database changed
+ +
| Tables_in_penjualan |
+ +
| tb_pelanggan |
+ +
+ + + + + + +
+ + + + + + +
+ + + + + -+
+ + + + + -+
| PO001 | Achmad Solichin | Jakarta Selatan | 0217327762 | achmatim@gmail.com |
+ + + + + -+
+ +
| Tables_in_penjualan |
+ +
| tb_barang |
| tb_pelanggan |
+ +
+ + + + + + +
+ + + + + + +
+ + + + + + +
-> ('001','Meja','500000','3');
-> ('002','Lemari','1500000','13');
-> ('003','Kulkas','3000000','2');
-> ('004','televisi','2500000','10');
+ + + + + -+
+ + + + + -+
+ + + + + -+
Tabel Barang;
+--------+----------+---------+--------+
| kd_brg | nama_brg | harga | jumlah |
+--------+----------+---------+--------+
| 001 | Meja | 500000 | 3 |
| 002 | Lemari | 1500000 | 13 |
| 003 | Kulkas | 3000000 | 2 |
| 004 | Televisi | 2500000 | 10 |
+--------+----------+---------+--------+
3 rows in set (0.001 sec)