Академический Документы
Профессиональный Документы
Культура Документы
14393]
(c) 2016 Microsoft Corporation. All rights reserved.
C:\Users\ASUS>cd ..
C:\Users>cd xampp
The system cannot find the path specified.
C:\Users>cd ..
C:\>cd xampp
C:\xampp>cd mysql
C:\xampp\mysql>cd bin
C:\xampp\mysql\bin>mysql -u root
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 6
Server version: 10.1.21-MariaDB mariadb.org binary distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [test]> select*from transaksi where barang like 'o%' or barang like 'p%' or
barang like 'q%' or barang like 'r%'or barang like 's%' or barang like 't%' or
barang like 'u%' or barang like 'v%' or barang like 'w%' or barang like 'x%' or
barang like 'y%' or barang like 'z%';
+----+------+------------------+--------+--------+
| No | id | barang | harga | jumlah |
+----+------+------------------+--------+--------+
| 1 | p01 | ofasion verina | 165000 | 5 |
| 3 | p03 | sally pants | 385000 | 6 |
| 4 | p04 | trouser flatfont | 395000 | 4 |
| 5 | p05 | raglan fleece | 255000 | 2 |
+----+------+------------------+--------+--------+
4 rows in set (0.01 sec)
MariaDB [test]> alter table transaksi change barang nama_barang VARCHAR (50);
Query OK, 0 rows affected (0.45 sec)
Records: 0 Duplicates: 0 Warnings: 0
MariaDB [test]> alter table transaksi add total INT DEFAULT '0';
Query OK, 0 rows affected (1.05 sec)
Records: 0 Duplicates: 0 Warnings: 0
MariaDB [test]>