MySql snacks-3. Locale_MySQL

Source: Internet
Author: User
MySql snacks-3. Locale bitsCN.com
MySql snacks-3, Locale Related links: MySql snacks-1, value assignment operators "=" and ": =" http: // database/201208/149469 .html; mySql snacks-2. common comparison functions and comparison operators http: // database/201208/149471 .html Locale are no longer familiar with programming, select Resources in different language environments.
MySql provides Locale support for the date. Mysql uses the lc_time_names system variable to set Locale. Enter the following code to view the current Locale: [SQL] SELECT @ lc_time_names; generally, the default value is en_US. by default, if you enter the following statement [SQL] select dayname ('2017-08-22 '), Wednesday is returned. we can use [SQL] SET lc_time_names = zh_CN.
To set it to simplified Chinese, so that when you enter the query:


BitsCN.com

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.