Query problems for tables created by Oracle with NAVICAT

Source: Internet
Author: User

Navicat visual create a table, but just can't find! Why is this?

select * from user;

If we add double quotes to the user, we can find

SELECT * from "user";

Conclusion:

  1. Oracle tables and fields are case-sensitive. Oracle defaults to uppercase, and if we enclose them in double quotes it is case-insensitive, and if not, the system will automatically turn into uppercase.

  2, when we use Navicat to create a database using visual, Navicat automatically added "", when the database is created the actual code is this:

  

DROP TABLE "ROOT". " User "; CREATE TABLE "ROOT". " User  number (2notNULL  )

  3. I use SQL statements to create tables and fields

① do not add double quotes to create a variable capitalization

② with double quotes, as we do with the Navicat visualization

It is therefore recommended that:

1. It is also customary to develop handwritten SQL statements, and do not use double quotes when creating them! So that we can get to the same size as MySQL, etc. is not case-sensitive.

2. Try to capitalize on the habit of manipulating the database.

Query problems for tables created by Oracle with Navicat

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.