

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the use of MySQL CHAR() function?
In MySQL, is it possible to get the character value of the given integer value based on the ASCII table?
MySQL CHAR() function is used to return the character value of the given integer value according to the ASCII table. Its syntax is as follows −
Syntax
CHAR(N,…[USING charset_name])
Here N, are the integers whose characters' values are to be retrieved.
Example
mysql> Select CHAR(65,66,67,68); +-------------------+ | CHAR(65,66,67,68) | +-------------------+ | ABCD | +-------------------+ 1 row in set (0.00 sec)
- Related Questions & Answers
- What is the reverse function of CHAR() in MySQL
- What is the use of MySQL TRUNCATE() function?
- What is the use of MySQL SUBSTRING_INDEX() function?
- What is the use of MySQL UNHEX() function?
- What is the use of MySQL FROM_UNIXTIME() function?
- What is the use of MySQL GET_FORMAT() function?
- What is the use of MySQL LAST_INSERT_ID() function?
- What is the use of MySQL CONCAT_WS() function?
- What is the use of FIND_IN_SET () function in MySQL?
- What is the use of LOCATE() function in MySQL?
- What is the use of MySQL IFNULL() control flow function?
- What is the use of MySQL NULLIF() control flow function?
- What is the use of JavaScript eval function?
- What is the difference between CHAR and NCHAR in MySQL?
- What is the difference between CHAR and VARCHAR in MySQL?
Advertisements