Professional Documents
Culture Documents
434]
C:\WINDOWS\system32>cd..
C:\Windows>cd..
C:\>cd xampp\mysql\bin
C:\xampp\mysql\bin>mysql -u root -p
Enter password:
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
+--------------------+
| Database |
+--------------------+
| akademik |
| baru |
| data_perpulangan |
| information_schema |
| kuliah |
| mahasiswa |
| materi |
| minimarket |
| mysql |
| penjualan |
| performance_schema |
| phpmyadmin |
| si_rumah_sakit |
| t9 |
| test |
| uts |
+--------------------+
Database changed
-> BEGIN
-> SELECT nip, nama, kota, tgl_lahir, jk from infopribadi where kota = 'solo' and jk = 'L' or kota = 'yogya'
and jk = 'L';
-> END//
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near 'CRETAE PROCEDURE TampilBaru()
BEGIN
-> BEGIN
-> SELECT nip, nama, kota, tgl_lahir, jk from infopribadi where kota = 'solo' and jk = 'L' or kota = 'yogya'
and jk = 'L';
-> END//
Query OK, 0 rows affected (0.074 sec)
-> DELIMITER//
+-------+----------------+-------+------------+------+
+-------+----------------+-------+------------+------+
+-------+----------------+-------+------------+------+
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near 'DELIMITER' at line 1
-> BEGIN
-> ELSE
-> END$$
'>
C:\xampp\mysql\bin>cd..
C:\xampp\mysql>cd..
C:\xampp>cd xampp\mysql\bin
C:\xampp>cd..
C:\>cd xampp\mysql\bin
C:\xampp\mysql\bin>mysql -u root -p
Enter password:
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Database changed
-> BEGIN
-> ELSE
-> END$$
-> $$
+---------+
| @cuaca |
+---------+
| Mendung |
+---------+
-> ;
-> END$$
C:\xampp\mysql\bin>cd..
C:\xampp\mysql>cd..
C:\xampp>cd..
C:\>cd xamppp\mysql\bin
C:\>cd..
C:\>cd xampp\mysql\bin
C:\xampp\mysql\bin>mysql-u root -p
Enter password:
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
+--------------------+
| Database |
+--------------------+
| akademik |
| baru |
| data_perpulangan |
| information_schema |
| kuliah |
| mahasiswa |
| materi |
| minimarket |
| mysql |
| penjualan |
| performance_schema |
| phpmyadmin |
| si_rumah_sakit |
| t9 |
| test |
| uts |
+--------------------+
MariaDB [(none)]>
Microsoft Windows [Version 10.0.22000.434]
C:\WINDOWS\system32>cd..
C:\Windows>cd..
C:\>cd xampp\mysql\bin
C:\xampp\mysql\bin>mysql-u root -p
C:\xampp\mysql\bin>mysql -u root -p
Enter password:
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near 'databaase store' at line 1
Database changed
-> ID_Transaksi_Detail
-> ID_Transaksi
-> ID_Barang
-> Jumlah_Barang
-> Harga_Satuan );
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near '(
ID_Transaksi_Detail
ID_Transaksi
ID_Barang
Jumlah_Barang
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near '(
ID_Transaksi_Detail int(10),
ID_Transaksi int(10),
ID_Barang int(5),
Jumlah...' at line 1
+---------------------+--------------+-----------+---------------+--------------+
+---------------------+--------------+-----------+---------------+--------------+
+---------------------+--------------+-----------+---------------+--------------+
+---------------------+--------------+-----------+---------------+--------------+
+---------------------+--------------+-----------+---------------+--------------+
-> SELECT
-> ID_Transaksi,
-> FROM
-> store
+--------------+-------+
| ID_Transaksi | total |
+--------------+-------+
| 104 | 80000 |
| 102 | 75000 |
| 101 | 50000 |
| 103 | 45000 |
| 107 | 35000 |
| 106 | 15000 |
| 105 | 10000 |
+--------------+-------+
Database changed
-> );
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near ')' at line 6
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near ')' at line 5
-> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near 'DELIMITER//' at line 1
-> BEGIN
-> END //
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near 'WHRE ID_buku=NEW.ID_Buku;
END' at line 7
-> BEGIN
-> END //
-> select;
-> ;
-> );
-> //
+---------+----------------------+--------+
+---------+----------------------+--------+
| 20 | Basis Data | 5|
| 21 | Aljabar Linear | 3|
| 22 | Dasar-Dasar Pemrogra | 4|
| 23 | Pemrograman Web | 10 |
+---------+----------------------+--------+
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near ';
)' at line 1
-> BEGIN
-> END //
-> );
-> ));
-> ;
-> 00;
-> //
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near ';
);
));
00' at line 6
Bye
C:\xampp\mysql\bin>cd..
C:\xampp\mysql>cd..
C:\xampp>cd..
C:\>cd xampp\mysql\bin
C:\xampp\mysql\bin>mysql -u root -p
Enter password:
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Database changed
+---------+----------------------+--------+
+---------+----------------------+--------+
| 20 | Basis Data | 5|
| 21 | Aljabar Linear | 3|
| 22 | Dasar-Dasar Pemrogra | 4|
| 23 | Pemrograman Web | 10 |
+---------+----------------------+--------+
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near '(ID_Buku)' at line 1
+-----------+-------------+------+-----+---------+-------+
+-----------+-------------+------+-----+---------+-------+
+-----------+-------------+------+-----+---------+-------+
-> );
-> BEGIN
-> END //
+---------+----------------------+--------+
+---------+----------------------+--------+
| 20 | Basis Data | 5|
| 21 | Aljabar Linear | 3|
| 22 | Dasar-Dasar Pemrogra | 4|
| 23 | Pemrograman Web | 10 |
+---------+----------------------+--------+
MariaDB [study]> insert into peminjaman values (1, "Fifid", 23, 5);
C:\xampp\mysql\bin>cd..
C:\xampp\mysql>cd.
C:\xampp\mysql>
C:\xampp\mysql>cd..
C:\xampp>cd..
C:\>cd xampp\mysql\bin
C:\xampp\mysql\bin>mysql -u root -p
Enter password:
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
+--------------------+
| Database |
+--------------------+
| akademik |
| baru |
| data_perpulangan |
| information_schema |
| kuliah |
| mahasiswa |
| materi |
| minimarket |
| mysql |
| penjualan |
| performance_schema |
| phpmyadmin |
| si_rumah_sakit |
| store |
| study |
| t9 |
| test |
| uts |
+--------------------+
-> Jumlah;
Database changed
-> );
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near ')' at line 4
'> );
'> ;;
'> ));
'> );
'> );
'> ;
'> 000;//
'> //
'> END//
'> :'
Bye
C:\xampp\mysql\bin>cd..
C:\xampp\mysql>cd..
C:\xampp>cd..
C:\>cd xampp\mysql\bin
C:\xampp\mysql\bin>mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Database changed
+---------+-----------------+--------+
+---------+-----------------+--------+
| 10 | Basis Data | 20 |
| 11 | Aljabar Linear | 15 |
| 12 | Web Development | 25 |
+---------+-----------------+--------+
-> BEGIN
-> END //
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near 'END' at line 8
-> BEGIN
-> END//
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near 'END' at line 8
-> BEGIN
-> END//
-> ;
+---------+-----------------+--------+
+---------+-----------------+--------+
| 10 | Basis Data | 20 |
| 11 | Aljabar Linear | 15 |
| 12 | Web Development | 25 |
+---------+-----------------+--------+
MariaDB [perpustakaan]> INSERT INTO peminjaman values (1, "Fifid", 12, 4);
+---------------+---------------+---------+---------------+
+---------------+---------------+---------+---------------+
| 1 | Fifid | 12 | 4|
+---------------+---------------+---------+---------------+
+---------+-----------------+--------+
+---------+-----------------+--------+
| 10 | Basis Data | 20 |
| 11 | Aljabar Linear | 15 |
| 12 | Web Development | 21 |
+---------+-----------------+--------+
Bye
C:\xampp\mysql\bin>cd..
C:\xampp\mysql>cd..
C:\xampp>cd..
C:\>cd xampp\mysql\bin
C:\xampp\mysql\bin>mysql -u root -p
Enter password:
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Database changed
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near 'int(10),
KODE_BAG int(10),
+------+----------+--------+
+------+----------+--------+
| 4567 | 2 | 350000 |
| 4568 | 3 | 430000 |
| 4569 | 2 | 250000 |
| 4570 | 4 | 300000 |
+------+----------+--------+
Database changed
+-------+------------------+--------+------------+------+
+-------+------------------+--------+------------+------+
+-------+------------------+--------+------------+------+
Database changed
+-------+----------+--------+
+-------+----------+--------+
| 12345 | 2 | 450000 |
| 12346 | 4 | 650000 |
| 12347 | 3 | 400000 |
| 12348 | 1 | 300000 |
| 12349 | 5 | 230000 |
| 12350 | 2 | 360000 |
| 12351 | 2 | 500000 |
| 12352 | 4 | 700000 |
| 12353 | 3 | 450000 |
| 12354 | 4 | 240000 |
| 12355 | 1 | 700000 |
| 12356 | 2 | 180000 |
| 12357 | 5 | 340000 |
| 12358 | 1 | 100000 |
| 12359 | 5 | 320000 |
| 12360 | 1 | 90000 |
+-------+----------+--------+
-> //
-> select a.nama, a.kota, b.KODE_BAG, b.GAJI from infopribadi a,pekerjaan b where a.nip=b.NIP;
-> END//
-> END//
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near 'END' at line 1
-> select a.nama, a.kota, b.KODE_BAG, b.GAJI from infopribadi a,pekerjaan b where a.nip=b.NIP;
-> END//
-> ;
-> ));
-> //
+--------------------+
| Database |
+--------------------+
| akademik |
| baru |
| data_perpulangan |
| information_schema |
| kuliah |
| mahasiswa |
| materi |
| minimarket |
| mysql |
| penjualan |
| performance_schema |
| perpustakaan |
| phpmyadmin |
| si_rumah_sakit |
| store |
| t9 |
| test |
| uts |
| working |
+--------------------+
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near ';
))' at line 1
Database changed
-> select a.nama, a.kota, b.KODE_BAG, b.GAJI from infopribadi a,pekerjaan b where a.nip=b.NIP;
-> END//
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near 'END' at line 1
+------------------+--------+----------+---------+
+------------------+--------+----------+---------+
+------------------+--------+----------+---------+
MariaDB [baru]>