My sql2
My sql2
My sql2
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create table Emp (Emp_id) INT(10), (Ename) VARCHAR (60), (Salary) INT(100000));
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near ') INT(10), (Ename) VARCHAR (60),
(Salary) INT(100000))' at line 1
mysql> create table Emp ((Emp_id) INT(10), (Ename) VARCHAR (60), (Salary) INT(100000));
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'Emp_id) INT(10), (Ename) VARCHAR (60),
(Salary) INT(100000))' at line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'Emp_id) INT(10)' at line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near ') INT(10)' at line 1
mysql> create table Emp (Emp_id INT(10);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '' at line 1
Database changed
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '(Ename VARCHAR (100),(Salary
INT(100000))' at line 1
+--------+------+------+-----+---------+-------+
+--------+------+------+-----+---------+-------+
+--------+------+------+-----+---------+-------+
+--------+-------------+------+-----+---------+-------+
+--------+-------------+------+-----+---------+-------+
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'SET Emp_id PRIMARY KEY' at line 1
+--------+--------+--------+
+--------+--------+--------+
| 1 | Suman | 20000 |
| 2 | Sanjay | 32000 |
| 3 | Ravi | 30000 |
+--------+--------+--------+
+-------------+
| Salary+1000 |
+-------------+
| 21000 |
| 33000 |
| 31000 |
+-------------+
->
-> ;
-> ;
+--------+------------+
| Emp_id | Salary-500 |
+--------+------------+
| 1| 19500 |
| 2| 31500 |
| 3| 29500 |
+--------+------------+
+--------+----------+
| Ename | Salary*3 |
+--------+----------+
| Suman | 60000 |
| Sanjay | 96000 |
| Ravi | 90000 |
+--------+----------+
+--------+--------+------------+
+--------+--------+------------+
| 1 | Suman | 10000.0000 |
| 2 | Sanjay | 16000.0000 |
| 3 | Ravi | 15000.0000 |
+--------+--------+------------+
+--------+--------+
| Emp_id | Ename |
+--------+--------+
| 1 | Suman |
| 2 | Sanjay |
| 3 | Ravi |
+--------+--------+
mysql> create table Student (Admno INT, Name VARCHAR(100), Class INT, House VARCHAR(60);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '' at line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '' at line 1
+-------+--------+-------+--------+
+-------+--------+-------+--------+
+-------+--------+-------+--------+
-> ;
+-------+-------+-------+-------+
+-------+-------+-------+-------+
+-------+-------+-------+-------+
+-------+
| Admno |
+-------+
| 1003 |
+-------+
+-------+--------+-------+--------+
+-------+--------+-------+--------+
+-------+--------+-------+--------+
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'Dsc' at line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'Dec' at line 1
+-------+--------+-------+--------+
+-------+--------+-------+--------+
+-------+--------+-------+--------+
-> ;
+-------+--------+-------+--------+
+-------+--------+-------+--------+
+-------+--------+-------+--------+
2 rows in set (0.00 sec)
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'selecr Class from Student where
Name='Ravi'' at line 1
+-------+
| Class |
+-------+
| 10 |
+-------+
+-------+--------+-------+--------+
+-------+--------+-------+--------+
+-------+--------+-------+--------+
ERROR 1136 (21S01): Column count doesn't match value count at row 1
+--------+----------+-------+------+
+--------+----------+-------+------+
| 12 | Pen | 10 | 17 |
| 13 | Eraser | 5 | 15 |
| 14 | Notebook | 15 | 20 |
+--------+----------+-------+------+
+--------+----------+-------+------+
+--------+----------+-------+------+
| 12 | Pen | 10 | 17 |
| 13 | Eraser | 5 | 15 |
| 14 | Notebook | 15 | 20 |
| 15 | Pencil | 20 | 10 |
+--------+----------+-------+------+
+--------+----------+-------+------+
+--------+----------+-------+------+
| 12 | Pen | 10 | 17 |
| 13 | Eraser | 5 | 15 |
| 14 | Notebook | 15 | 20 |
+--------+----------+-------+------+
+--------+----------+-------+------+
+--------+----------+-------+------+
| 12 | Pen | 10 | 17 |
| 13 | Eraser | 5 | 25 |
| 14 | Notebook | 15 | 20 |
| 15 | Pencil | 20 | 10 |
+--------+----------+-------+------+
+-----------+
| Price*Qty |
+-----------+
| 170 |
| 125 |
| 300 |
| 200 |
+-----------+
+-------+
| Iname |
+-------+
| Pen |
+-------+
+--------+----------+-------+------+
+--------+----------+-------+------+
| 13 | Eraser | 5 | 25 |
| 12 | Pen | 10 | 17 |
| 14 | Notebook | 15 | 20 |
| 15 | Pencil | 20 | 10 |
+--------+----------+-------+------+
+--------+----------+-------+------+
+--------+----------+-------+------+
| 12 | Pen | 12 | 17 |
| 13 | Eraser | 7 | 25 |
| 14 | Notebook | 17 | 20 |
| 15 | Pencil | 22 | 10 |
+--------+----------+-------+------+
| Tables_in_practice |
+--------------------+
| emp |
| item |
| student |
+--------------------+
+--------+--------------+------+-----+---------+-------+
+--------+--------------+------+-----+---------+-------+
+--------+--------------+------+-----+---------+-------+
7 rows in set (0.00 sec)
ERROR 1292 (22007): Incorrect datetime value: '10/04/2006' for column 'DOB' at row 1
ERROR 1292 (22007): Incorrect datetime value: '10-04-2006' for column 'DOB' at row 1
+-------+--------+-------+---------------------+-------+-------+--------+
+-------+--------+-------+---------------------+-------+-------+--------+
+-------+--------+-------+---------------------+-------+-------+--------+
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '(DOB DATE)' at line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '(DOB DATETIME)' at line 1
mysql>
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '('DOB' DATE)' at line 1
'> );
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '','68',RED','F'),('1005','ARUN','9','2005-
07-16','72','GREEN','M'),('1006','TIA'' at line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '','68',RED','F'),('1005','ARUN','9','2005-
07-16','72','GREEN','M'),('1006','TIA'' at line 1
'> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '','F'),('1005','ARUN','9','2005-07-
16','72','GREEN','M'),('1006','TIA','9','2005' at line 1
'>
'>
'>
'>
'>
'>
'>
'>
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '','F'),('1005','ARUN','9','2005-07-
16','72','GREEN','M'),('1006','TIA','9','2005' at line 1
+-------+--------+-------+---------------------+-------+-------+--------+
+-------+--------+-------+---------------------+-------+-------+--------+
+-------+-------+-------+---------------------+-------+-------+--------+
+-------+-------+-------+---------------------+-------+-------+--------+
+-------+-------+-------+---------------------+-------+-------+--------+
+-------+--------+-------+---------------------+-------+-------+--------+
+-------+--------+-------+---------------------+-------+-------+--------+
+-------+--------+-------+---------------------+-------+-------+--------+
+-------+--------+-------+---------------------+-------+-------+--------+
+-------+--------+-------+---------------------+-------+-------+--------+
+-------+--------+-------+---------------------+-------+-------+--------+
+-------+--------+-------+---------------------+-------+-------+--------+
+-------+--------+-------+---------------------+-------+-------+--------+
+--------------------+
| Tables_in_practice |
+--------------------+
| emp |
| item |
| student |
| students |
+--------------------+
+--------------------+
| Database |
+--------------------+
| ani |
| blank_hiho |
| information_schema |
| macces |
| mysql |
| performance_schema |
| practice |
| sakila |
| student_practice |
| sys |
| world |
+--------------------+
+--------------------+
| Database |
+--------------------+
| ani |
| information_schema |
| macces |
| mysql |
| performance_schema |
| practice |
| sakila |
| student_practice |
| sys |
| world |
+--------------------+
Database changed
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '' at line 1
+----------------------------+
| Tables_in_student_practice |
+----------------------------+
| info |
| information |
+----------------------------+
+-----------+-------------+------+-----+---------+-------+
+-----------+-------------+------+-----+---------+-------+
+-----------+-------------+------+-----+---------+-------+
+-----------+----------+--------+-------+------------+
+-----------+----------+--------+-------+------------+
+-----------+----------+--------+-------+------------+
+------------+-------------+------+-----+---------+-------+
+------------+-------------+------+-----+---------+-------+
+------------+-------------+------+-----+---------+-------+
+-----------+----------+--------+-------+------------+------------+
| firstname | lastname | gender | grade | dob | rollnumber |
+-----------+----------+--------+-------+------------+------------+
+-----------+----------+--------+-------+------------+------------+
+--------------------+
| Database |
+--------------------+
| ani |
| information_schema |
| macces |
| mysql |
| performance_schema |
| practice |
| sakila |
| student_practice |
| sys |
| world |
+--------------------+
Database changed
mysql> show tables;
+---------------+
| Tables_in_ani |
+---------------+
| aniruddha |
+---------------+
+-------+-------------+------+-----+---------+-------+
+-------+-------------+------+-----+---------+-------+
+-------+-------------+------+-----+---------+-------+
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'ani' at line 1
+--------------------+
| Database |
+--------------------+
| information_schema |
| macces |
| mysql |
| performance_schema |
| practice |
| sakila |
| student_practice |
| sys |
| world |
+--------------------+
Database changed
+--------+-------------+------+-----+---------+-------+
+--------+-------------+------+-----+---------+-------+
+--------+-------------+------+-----+---------+-------+
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near ''P101','SACHIN','13000','M','2001-04-
10'),('P102','KAPIL','7000','M','1998-02-12' at line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near ''P101','SACHIN','13000','M','2001-04-
10'),('P102','KAPIL','7000','M','1998-02-12' at line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near ''P101','SACHIN','13000','M','2001-04-
10'),('P102','KAPIL','7000','M','1998-02-12' at line 1
mysql>
mysql>
mysql>
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near ''P101','SACHIN','13000','M','2001-04-10')'
at line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near ''P101','SACHIN','13000','M','2001-04-10')'
at line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near ''P101','SACHIN','13000','M','2001-04-10')'
at line 1
'> ;
'> \
'>
'>
'>
'> m;
'> mysql>
'> ;
'>
'>
'>
'>
'>
'>
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near ''P101','SACHIN','13000','M','2001-04-10
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near ''P101','SACHIN','13000','M','2001-04-
10'),('P102','KAPIL','7000','M','1998-02-12' at line 1
+--------------------+
| Tables_in_practice |
+--------------------+
| emp |
| item |
| player |
| student |
| students |
+--------------------+
+--------+-------------+------+-----+---------+-------+
+--------+-------------+------+-----+---------+-------+
+--------+-------------+------+-----+---------+-------+
+------+---------+-------+--------+------------+
+------+---------+-------+--------+------------+
+------+---------+-------+--------+------------+
ER CHAR);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'OF JOINING DATE,COMMISSION
INT,DEPARTMNET VARCHAR(50),GENDER CHAR)' at line 1
+------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------+--------------+------+-----+---------+-------+
+------------+--------------+------+-----+---------+-------+
->
-> 300
->
-> SALES
->
-> 10/04/2006
->
-> 7000
->
-> 1001;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '300
SALES
10/04/2006
7000
1001' at line 3
'> );
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '','M'),('1006','TAMNNA','15000','2005-
09-22','200','FINANCE','F'),('1007','ROHIT' at line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '','M'),('1006','TAMNNA','15000','2005-
09-22','200','FINANCE','F'),('1007','ROHIT' at line 1
mysql> INSERT INTO EMPLOYEE VALUES ('1002','RISHU','12000','2005-12-08','100','FINANCE','F'),
('1003','DEVANSH','9000','2004-05-25','500','SALES','M'),('1004','SUMAN','10000','2005-08-
23','300','MARKETING','F'),('1005','ARYAN','11000','2005-07-16','500',SALES','M'),
('1006','TAMNNA','15000','2005-09-22','200','FINANCE','F'),('1007','ROHIT','8000','2004-08-
26','900','SALES','M');
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '','M'),('1006','TAMNNA','15000','2005-
09-22','200','FINANCE','F'),('1007','ROHIT' at line 1
mysql>
mysql>
mysql>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
'>
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '','M'),('1006','TAMNNA','15000','2005-
09-22','200','FINANCE','F'),('1007','ROHIT' at line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '','M'),('1006','TAMNNA','15000','2005-
09-22','200','FINANCE','F'),('1007','ROHIT' at line 1
mysql>
mysql>
mysql>
mysql>
mysql>
mysql>
mysql>
mysql>
mysql>
mysql>
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '','M');
mysql>
+--------+---------+--------+------------+------------+------------+--------+
+--------+---------+--------+------------+------------+------------+--------+
+--------+---------+--------+------------+------------+------------+--------+
mysql>