Get the App
SLTechnology News&Howtos  ›  Database  › 

Key points for attention in executing SQL statements in MySQL Database

Shulou Source: shulou.com Published: 2022-05-31 17:46:24 11月13日 Update

This article mainly explains the "key points for attention to the execution of SQL statements in MySQL database". The explanation in this article is simple and clear, and is easy to learn and understand. Please follow the editor's train of thought to study and learn "the key points for attention to the execution of SQL statements in MySQL database".

Case problems when executing the lookup command

By default, MySQL does not distinguish the case of letters when performing a lookup. When you use like a% when searching, all column values starting with an or A will be returned by default. To be case-sensitive, you need to use the collate operator. Examples are as follows:

If you want a column to remain case-sensitive when looking up, you need to use case sensitive or binary collation to define the properties of the column.

When performing simple comparison operations, such as > =, >, =

Tags: Operations statements data numbers phones phone numbers databases essentials sizes characters types questions learning internals content functions letters situations results order Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Redmi Huawei Apple MariaDB