MySQL Learning notes (5) Character set and proofing rules

Source: Internet
Author: User

Character set and proofing rules

1. Character set: A set of symbols and character encodings.


2. Proofing Rules: A set of rules that are used to compare characters within a character set.

3, the installation of the database is best with our fixed code.


4. You can specify a character set when you create a table: ..... Charset=[gdk/utf8] ;

5. View the coded variables:show varchar like '%char%';

–character_set_server : The default internal operation character Set

–character_set_client : The character set used by the client source data

–character_set_connection: Connection layer Character Set
–character_set_results: Query result character Set
–character_set_database: The default character set for the currently selected database
–character_set_system: System metadata ( field name, etc. ) Character Set
– there are also variables that begin with Collation_ to describe the character Fu She.


6. To change the encoding variable: Set Names coding;

650) this.width=650; "Width=" 617 "height=" 209 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>


650) this.width=650 "width=" 605 "height=" "src="/e/u261/themes/default/images/spacer.gif style= "Background:url" ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>


This article is from the "Learning and Exchange" blog, please be sure to keep this source http://chenhaolinux.blog.51cto.com/9609922/1710769

The character set and proofing rules for the

MySQL Learning Note (5)

Related Article

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.