
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
How can we check that by default MySQL CHAR() function returns a binary string?
With the help of CHARSET() function, we can check which string is returned by MySQL CHAR() function. Following result set will demonstrate it −
mysql> Select CHARSET(CHAR(85)); +-------------------+ | CHARSET(CHAR(85)) | +-------------------+ | binary | +-------------------+ 1 row in set (0.00 sec)
- Related Articles
- How can we produce a string, other than default binary string, in a given character set by MySQL CHAR() function?
- What MySQL returns if we provide value larger than 255 as argument to MySQL CHAR() function?
- How can we check the default character sets of a particular MySQL database?
- Program to check whether first player can win a game where players can form string char by char in C++
- How can we reverse a MySQL string connected by the dash?
- How can we establish MySQL database by using MySQL binary at command\nprompt?
- How can we split the name string into two parts by using MySQL SUBSTRING_INDEX() function?
- How can we split the name string into three parts by using MySQL SUBSTRING_INDEX() function?
- How to write a JavaScript function that returns true if a portion of string 1 can be rearranged to string 2?
- In MySQL, how can we use FROM_UNIXTIME() function with format string?
- How can we check the default character sets of all the MySQL databases we have on the server?
- How can we emulate CHECK CONSTRAINT by using MySQL GENERATED COLUMN?
- How can we alter a MySQL stored function?
- How can we specify default values in MySQL INSERT statement?
- MySQL query that returns a specific string if column is null?

Advertisements