Professional Documents
Culture Documents
ABD Kel 3
ABD Kel 3
ABD Kel 3
1766]
(c) Microsoft Corporation. All rights reserved.
C:\Users\LAPTOPSMKN4>cd c:\
c:\>"xampp/mysql/bin/mysql.exe" -u root
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 511
Server version: 10.4.22-MariaDB mariadb.org binary distribution
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 '''' at
line 1
MariaDB [toko_baju]> SELECT*FROM PENJUALAN;
+--------------+----------+-------------+---------------+--------+-------------
+-------------+
| id_penjualan | no_kasir | kode_produk | tgl_penjualan | harga | jumlah_beli |
total_harga |
+--------------+----------+-------------+---------------+--------+-------------
+-------------+
| 1001 | A02 | A34 | 2022-05-22 | 250000 | 2 |
500000 |
| 1002 | A02 | M94 | 2022-05-22 | 150000 | 3 |
750000 |
| 1003 | A03 | N110 | 2022-05-24 | 300000 | 4 |
1200000 |
| 1004 | A04 | N122 | 2022-06-01 | 400000 | 10 |
4000000 |
| 1005 | A04 | A34 | 2022-06-02 | 250000 | 4 |
1000000 |
| 1006 | A04 | N122 | 2022-06-03 | 400000 | 2 |
800000 |
+--------------+----------+-------------+---------------+--------+-------------
+-------------+
6 rows in set (0.000 sec)
c:\>"xampp/mysql/bin/mysql.exe" -u root
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 698
Server version: 10.4.22-MariaDB mariadb.org binary distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [toko_baju]> UPDATE kasir SET no_kasir = 'A06' WHERE no_kasir = 'A04';
Query OK, 1 row affected (0.067 sec)
Rows matched: 1 Changed: 1 Warnings: 0
MariaDB [toko_baju]>