Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does mysql query the code?

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly shows you "mysql how to query the code", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to query the code of mysql" this article.

Query method: 1, with the "show variables like 'character%'" command, you can query the code of the entire library; 2, with the "show table status from table name like"% yxfx_zxxx_fyb% "" command, you can query the specified table code.

The operating environment of this tutorial: windows7 system, mysql8 version, Dell G3 computer.

Mysql query coding

Method 1: query the coding of the entire library

Show variables like 'character%'

Among them

Character_set_client is the client-side encoding method

The encoding used by character_set_connection to establish a connection

Coding of character_set_database database

Coding of character_set_results result set

Coding of character_set_server database server

As long as the above four adopt the same coding method, there will be no garbled problem.

Method 2: query the encoding of the specified table

Use the following command:

The show table status from table name like "% yxfx_zxxx_fyb%" is all the contents of the article "how to query codes for mysql". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report