Dbms
Dbms
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> \h
http://www.mysql.com/
http://dev.mysql.com/
https://shop.mysql.com/
Note that all text commands must be first on line and end with ';'
connect (\r) Reconnect to the server. Optional arguments are db and host.
source (\.) Execute an SQL script file. Takes a file name as an argument.
tee (\T) Set outfile [to_outfile]. Append everything into given outfile.
charset (\C) Switch to another charset. Might be needed for processing binlog with multi-byte charsets.
query_attributes Sets string parameters (name1 value1 name2 value2 ...) for the next query to pick up.
Database changed
ERROR 4028 (HY000): A table must have at least one visible column.
ERROR 1136 (21S01): Column count doesn't match value count 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 'swelect * from employee' at line 1
+-------+-------+
| empid | ename |
+-------+-------+
| 11 | suraj |
+-------+-------+
-> ;
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
+-------+-------+
| empid | ename |
+-------+-------+
| 11 | suraj |
| 11 | tejas |
+-------+-------+
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 'add column (esalary int(50))' 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 'add (esalary int(50))' 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
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 'update employee' at line 2
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 'select * from employee' at line 2
+-------+-------+---------+
+-------+-------+---------+
| 11 | suraj | NULL |
| 11 | tejas | NULL |
+-------+-------+---------+
+-------+-------+---------+
+-------+-------+---------+
| 11 | suraj | NULL |
| 12 | tejas | NULL |
+-------+-------+---------+
+-------+-------+---------+
+-------+-------+---------+
| 11 | suraj | NULL |
| 12 | tejas | 5000 |
+-------+-------+---------+
-> SELECT
-> product_name,
-> price,
-> CASE
-> FROM
-> products;
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 'SELECT
product_name,
price,
CASE
WHEN price > 100 THEN 'Ex' at line 2
+-------+-------+---------+
+-------+-------+---------+
| 11 | suraj | 7000 |
| 12 | tejas | 5000 |
+-------+-------+---------+
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 'createv table employee (empid int(20),ename
varchar(50), esalary int(50))' at line 1
+-------+-------+---------+
+-------+-------+---------+
| 11 | suraj | 5000 |
+-------+-------+---------+
+-------+-------+---------+
| 11 | suraj | 5000 |
| 12 | tejas | 7000 |
+-------+-------+---------+
mysql> SELECT
-> product_name,
-> price,
-> CASE
-> FROM
-> products;
mysql>