Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MariaDB [(none)]> create database puskesmas;
- MariaDB [(none)]> use puskesmas;
- MariaDB [puskesmas]> insert into obat MariaDB [puskesmas]> (kode_obat,Nama_obat,Satuan_obat,Jumlah,Jenis_obat) values ('B001','Paracetamol','Kapsul','100','Keras');
- Mengisi Values:
- MariaDB [puskesmas]> insert into obat (kode_obat,Nama_obat,Satuan_obat,Jumlah,Jenis_obat) values ('B002','Bodrek','Kapsul','25','Ringan');
- Mengganti Values:
- MariaDB [puskesmas]> update obat set Nama_obat='Bodreksin' where Kode_obat='B002';
- Menghapus Values:
- MariaDB [puskesmas]> delete from obat where Kode_obat='B002';
- menghapus semua Values:
- MariaDB [puskesmas]> delete from obat;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement