Translation: SET NAMES

Source: Internet
Author: User

Translation: SET NAMES

This article is a translation of the mariadb official manual: set names.

Original article: https://mariadb.com/kb/en/set-names/
Https://mariadb.com/kb/zh-cn/set-names/ I submitted to the MariaDB official manual

Syntax
SET NAMES {'charset_name'    [COLLATE 'collation_name'] | DEFAULT}
Description

This sets the variables character_set_client, character_set_connection, and character_set_results, and implicitly sets the session-level system variable collation_connection as the specified character set and sorting rule.

It determines the character set used when the client sends the statement to the server and the server returns the statement execution result to the client.

The COLLATE clause is optional. If it is not defined (or set to DEFAULT), the DEFAULT sorting rule of the character set is used.

 

Go back to the Linux series article outline: workshop!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.