[raj@tinman ~]$ ls
Bing.url      get-pip.py  install-packages  NVIDIA-Linux-x86_64-390.77.run  public_html  teaching
Document.txt  h1000       misc              p1.sql                          service      test.py
[raj@tinman ~]$ cd h1000
[raj@tinman h1000]$ ls
insert.sql  table.sql
[raj@tinman h1000]$ mysql -u raj -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 414
Server version: 5.5.56-MariaDB MariaDB Server

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| raj                |
+--------------------+
2 rows in set (0.00 sec)

MariaDB [(none)]> use raj;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MariaDB [raj]> show tables;
+---------------+
| Tables_in_raj |
+---------------+
| CUSTOMERS     |
| distribution  |
+---------------+
2 rows in set (0.00 sec)

MariaDB [raj]> drop table CUSTOMERS;
Query OK, 0 rows affected (0.02 sec)

MariaDB [raj]> show tables;
+---------------+
| Tables_in_raj |
+---------------+
| distribution  |
+---------------+
1 row in set (0.00 sec)

MariaDB [raj]> source table.sql
Query OK, 0 rows affected (0.09 sec)

MariaDB [raj]> show tables;
+---------------+
| Tables_in_raj |
+---------------+
| CUSTOMERS     |
| distribution  |
+---------------+
2 rows in set (0.00 sec)

MariaDB [raj]> exit
Bye
[raj@tinman h1000]$ mysql -u raj -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 415
Server version: 5.5.56-MariaDB MariaDB Server

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> use raj
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MariaDB [raj]> source insert.sql
Query OK, 1 row affected (0.02 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.01 sec)

MariaDB [raj]> desc CUSTOMERS;
+---------+---------------+------+-----+---------+-------+
| Field   | Type          | Null | Key | Default | Extra |
+---------+---------------+------+-----+---------+-------+
| ID      | int(11)       | NO   | PRI | NULL    |       |
| NAME    | varchar(20)   | NO   |     | NULL    |       |
| AGE     | int(11)       | NO   |     | NULL    |       |
| ADDRESS | char(25)      | YES  |     | NULL    |       |
| SALARY  | decimal(18,2) | YES  |     | NULL    |       |
+---------+---------------+------+-----+---------+-------+
5 rows in set (0.00 sec)

MariaDB [raj]> select * from CUSTOMERS;
+----+----------+-----+-----------+----------+
| ID | NAME     | AGE | ADDRESS   | SALARY   |
+----+----------+-----+-----------+----------+
|  1 | Ramesh   |  32 | Ahmedabad |  2000.00 |
|  2 | Khilan   |  25 | Delhi     |  1500.00 |
|  3 | kaushik  |  23 | Kota      |  2000.00 |
|  4 | Chaitali |  25 | Mumbai    |  6500.00 |
|  5 | Hardik   |  27 | Bhopal    |  8500.00 |
|  6 | Komal    |  22 | MP        |  4500.00 |
|  7 | Muffy    |  24 | Indore    | 10000.00 |
+----+----------+-----+-----------+----------+
7 rows in set (0.00 sec)

MariaDB [raj]> select ID,NAME,ADDRESS from CUSTOMERS WHERE AGE < 25;
+----+---------+---------+
| ID | NAME    | ADDRESS |
+----+---------+---------+
|  3 | kaushik | Kota    |
|  6 | Komal   | MP      |
|  7 | Muffy   | Indore  |
+----+---------+---------+
3 rows in set (0.00 sec)

MariaDB [raj]> exit
Bye
[raj@tinman h1000]$