SQL
SQL
SQL
-> ;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
4 rows in set (0.03 sec)
use technoelevate;
Database changed
mysql> show tables;
Empty set (0.02 sec)
desc interns
-> ;
+--------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------+-------------+------+-----+---------+-------+
| name | varchar(50) | NO | | NULL | |
| id | int(11) | NO | PRI | NULL | |
| dobb | date | YES | | NULL | |
| gender | varchar(1) | NO | | NULL | |
| role | varchar(25) | NO | | NULL | |
| mobile | bigint(20) | NO | UNI | NULL | |
| salary | double | YES | | NULL | |
+--------+-------------+------+-----+---------+-------+
7 rows in set (0.04 sec)
mysql>
mysql> select * from interns where id>=10 and id<=30;
+--------------+----+------------+--------+---------------+------------+--------+
| name | id | dobb | gender | role | mobile | salary |
+--------------+----+------------+--------+---------------+------------+--------+
| Balakumara R | 10 | 1992-07-21 | M | Intern | 9445518211 | 2500 |
| Ramanathan V | 20 | 1957-11-05 | M | Site Engineer | 9444224116 | 50000 |
| Revathi R | 30 | 1962-11-09 | F | House wife | 9361084430 | 25 |
+--------------+----+------------+--------+---------------+------------+--------+
3 rows in set (0.01 sec)