Anda di halaman 1dari 2

NAMA : FILDZAH ARISTA SYAHPUTRI

NIM : 2210512169
KELAS : D

PRAKTIKUM SISTEM BASIS DATA

Lembar Kerja Praktikum 1


MariaDB [stock_opname]> delimiter ;
MariaDB [st ock_opna me ] > select * from tb_barang;
+---------- -+--- ------------ -+----- -+------------- -+
I id_barang I nama_barang I stok I harga_barang I
+-- - - - - - - - - -+- - - - - - - - - - - - - - - -+- - - - - -+- - - - - - - - - - - - - -+
I 1 I Buku Tulis I 0 I 5000
I 2 I Pensil 2B I 0 I 3500
I 3 I Penghapus I 0 I 2000
I 4 I Penggaris 30cm I 0 I 2000
I 5 I Pulpen Biru I 0 I 4000
+- - - - - - - - - - -+- - - - - - - - - - - - - - - -+- - - - - -+- - - - - - - - - - - - - -+
5 rows in set (0 .003 sec)

MariaDB [ st ock_opna me ] > insert into tb_pembelian values (1, 1, 50);


Query OK, 1 row affected (0.024 sec)

MariaDB [stock_opname]> select * from tb_pembelian;


+ - - - - - - - - - - - - - - + - - - - - - - - - - -+----- -+
I id_pembelian I id_barang I stok I
+-- ----------- -+ -------- -+ --- - +
1 I 1 I se I
+- - - - - - - - - - - - - -+- - - - - - - - - - -+- - - - - -+
1 row in set (0. 001 sec)

ariaDB [stock_opnarne]> select * from tb_barang;


+---------- -+--- ------------ -+----- -+------------- -+
I id_barang I nama_barang I stok I harga_barang I
+-- - - - - - - - - -+- - - - - - - - - - - - - - - -+- - - - - -+- - - - - - - - - - - - - -+
I 1 I Buku Tulis I 50 I 5000
I 2 I Pensil 28 I 0 I 3500
I 3 I Penghapus I 0 I 2000
I 4 I Penggaris 30cm I 0 I 2000
I 5 I Pulpen Biru I 0 I 4000
+-- - - - - - - - - -+- - - - - - - - - - - - - - - -+- - - - - -+- - - - - - - - - - - - - -+
5 rows in set ( 0. 001 sec)

MariaDB [stock_opname]>•

Anda mungkin juga menyukai