Sol Notes
Sol Notes
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
mysql>
mysql>
mysql>
mysql> select monthname("2024-04-31");
+-------------------------+
| monthname("2024-04-31") |
+-------------------------+
| NULL |
+-------------------------+
1 row in set, 1 warning (0.00 sec)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
-----------------------------------------------------------------------------------
----------------------------------------------------
-----------------------------Day 2nd
-----------------------------------------------------------------------------------
----------------------------
-----------------------------------------------------------------------------------
--------------------------------------------------------
Enter password: ****
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11
Server version: 8.3.0 MySQL Community Server - GPL
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
values(prabhau,12000)' at line 1
mysql> insert into emp(ename,esal)values('mohan',20000);
Query OK, 1 row affected (0.12 sec)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
mysql>
mysql>
mysql>
mysql>
mysql> insert into date_demo values("1990-10-25","11:13:15","1990-10-25 11:12:05");
Query OK, 1 row affected (0.39 sec)
mysql>
mysql>
mysql> insert into emp esal values (25000)where eid =90;
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 'esal
values (25000)where eid =90' at line 1
mysql> insert into emp values esal (25000)where eid =90;
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 'esal
(25000)where eid =90' at line 1
mysql> update emp set esal=25000 where esal is null;
Query OK, 1 row affected (0.40 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql>
mysql>