Differences between Oracle database and MySQL database

Source: Internet
Author: User

OracleDatabases andMySQLThe difference between databases is what we will introduce in this article. Next we will introduce this part of content, hoping to help you.

Differences between Oracle and MySQL:

1. in Oracle, select * from all_users is used to display all users, while the command for displaying all databases in MYSQL is show databases. For my understanding, an Oracle project should have a user and a tablespace corresponding to it, while a MYSQL project should also have a user and a database. In ORACLE (same for db2), tablespaces are logical representations of physical containers in the file system. Views, triggers, and stored procedures can also be stored in tablespaces. MYSQL does not use tablespaces for management.

2. query all current tables. ORACLE: select * from tab, MYSQL: show tables.

3. Change the connected user (database ). ORACLE: conn username/password @ host string, MYSQL: use Database Name.

4. The current connected user (database) is displayed ). ORACLE: show user, MYSQL: connect.

5. Execute the external script command. ORACLE: @ a. SQL, MYSQL: source a. SQL.

The above is a comparison of the differences between the Oracle database and the MySQL database. I hope this introduction will be helpful to you!

Related Article

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.