Professional Documents
Culture Documents
DBMS Cia
DBMS Cia
Database changed
NUMERIC FUNCTIONS
mysql> select abs(-55);
+----------+
| abs(-55) |
+----------+
| 55 |
+----------+
1 row in set (0.01 sec)
//as you can see below, even if we give a string, only the first character’s ascii is given
//the first operator in concat_ws is the separator used while concatenating the two strings
//You can see the length after rtrim is lesser than normal, which means all the blank spaces to the right are removed
//if you give spaces in find_in_set it will not give the desired output
Conversion functions
mysql> select convert("2022-08-15", Date) as to_date;
+------------+
| to_date |
+------------+
| 2022-08-15 |
+------------+
1 row in set (0.01 sec)
mysql> notee