You are on page 1of 1

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

mysql> show databases;


+--------------------+
| Database |
+--------------------+
| employee |
| information_schema |
| mysql |
| performance_schema |
| school |
| sys |
+--------------------+
6 rows in set (0.00 sec)

mysql> use employee;


Database changed
mysql> create table stmarks(Rollno int,name varchar(100),Marks int);
Query OK, 0 rows affected (0.05 sec)

mysql> insert into stmarks(Rollno,name,Marks)values(1,'Advikbansal',89);


Query OK, 1 row affected (0.01 sec)

mysql> insert into stmarks(Rollno,name,Marks)values(1,'Advikbansal',89);


Query OK, 1 row affected (0.01 sec)

mysql> ^C
mysql> insert into stmarks(Rollno,name,Marks)values(2,'Shikha bansal',78);
Query OK, 1 row affected (0.01 sec)

mysql> insert into stmarks(Rollno,name,Marks)values(3,'mohan',78);


Query OK, 1 row affected (0.01 sec)

mysql> select * from stmarks;


+--------+---------------+-------+
| Rollno | name | Marks |
+--------+---------------+-------+
| 1 | Advikbansal | 89 |
| 1 | Advikbansal | 89 |
| 2 | Shikha bansal | 78 |
| 3 | mohan | 78 |
+--------+---------------+-------+
4 rows in set (0.01 sec)

You might also like