The document contains examples of MySQL functions such as ASCII, CHAR, BIN, OCT, HEX, CONV, LENGTH, CHAR_LENGTH, CONCAT, ELT, FIELD, FIND_IN_SET, FORMAT, and INSERT. It demonstrates how to use these functions to operate on and retrieve information from strings, numbers, and NULL values.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
13 views4 pages
Mysql Taniaaaaaaaaa (01 Des)
The document contains examples of MySQL functions such as ASCII, CHAR, BIN, OCT, HEX, CONV, LENGTH, CHAR_LENGTH, CONCAT, ELT, FIELD, FIND_IN_SET, FORMAT, and INSERT. It demonstrates how to use these functions to operate on and retrieve information from strings, numbers, and NULL values.
ERROR 1064 (42000): You have an error in your SQL syntax; corresponds to your MySQL server version for the right syn T(22)' at line 1 mysql> SELECT OCT(8),OCT(16),OCT(22); +--------+---------+---------+ | OCT(8) | OCT(16) | OCT(22) | +--------+---------+---------+ | 10 | 20 | 26 | +--------+---------+---------+ 1 row in set (0.00 sec)
+-----------------------+-------------------------+ | CONCAT('mata','hari') | CONCAT('matahari',NULL) | +-----------------------+-------------------------+ | matahari | NULL | +-----------------------+-------------------------+ 1 row in set (0.00 sec)
mysql> SELECT ELT(2,'x','y','z','a','b','c');
+--------------------------------+ | ELT(2,'x','y','z','a','b','c') | +--------------------------------+ | y | +--------------------------------+ 1 row in set (0.00 sec)