SQL statement case-sensitive issues

Source: Internet
Author: User

Keyword is case insensitive

For example, select, from, case can be

Identifiers are case-sensitive

For example, table name, column name

If the identifier is not double-quoted, the default is uppercase

Identifiers are executed in the original case if double quotation marks are added

However, when the table name is enclosed in double quotation marks,

Originally the default is the uppercase table name, plus double quotation marks in accordance with the original lowercase query, query not;

Now we're going to capitalize on it,

Then can be queried to;

Just remember, no double quotes, automatically converted to uppercase, but with double quotation marks, it is case-sensitive, when we create table names, column names are not added double quotation marks, it is automatically determined by the capitalization rules;

Writing specifications for SQL statements

All table names, column names all lowercase

keyword, built-in function name all uppercase

Unselected rows indicate no data in the table;

SQL statement case-sensitive issues

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.