Академический Документы
Профессиональный Документы
Культура Документы
15063]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Users\user>cd c:\
c:\>"xampp/mysql/bin/mysql.exe" -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 62
Server version: 5.6.24 MySQL Community Server (GPL)
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> alter table barang add keterangan varchar (30) after harga;
Query OK, 0 rows affected (0.60 sec)
Records: 0 Duplicates: 0 Warnings: 0
mysql>
mysql> alter table barang drop keterangan;
Query OK, 0 rows affected (0.50 sec)
Records: 0 Duplicates: 0 Warnings: 0
mysql> alter table barang add keterangan varchar (30) not null;
Query OK, 0 rows affected (0.63 sec)
Records: 0 Duplicates: 0 Warnings: 0
mysql> alter table barang change keterangan ket varchar (50) not null;
Query OK, 0 rows affected (0.65 sec)
Records: 0 Duplicates: 0 Warnings: 0
mysql>