Database Exercises (December 16, 16)--New Ket Network

Source: Internet
Author: User

1. Use the command (A B D) to view the table structure of the user table in the MySQL database?

A desc User B Show create TABLE user C Show columns for user D describe user

Analytical:

The command to view the MySQL table structure is as follows:

DESC table name;
Show columns from table name;
describe table name;
Show create table table name;

Use Information_schema
SELECT * from columns where table_name= ' table name ';

2. Database Oracle 9i :

Maximum protection (Maximum protection)

This mode ensures that data is not lost in the event of a primary database failure. In this mode, before the transaction commits, ensure that the redo data is written to the primary database's online redologs, write standby database standby redologs, and ensure that at least one standby Available in database. If standby database is not available, Primary database will be shutdown.

Maximum availability (Maximum availability)

This mode provides the highest level of data protection policy without affecting the availability of primary database, which also ensures that data is not lost. Before committing the transaction, ensure that the redo data has been written to the primary database's online redologs, while writing standby database's standby redologs to ensure that at least one standby Available in database. Unlike the maximum protection mode, if the standby database fails to be unavailable, Primary database is not shutdown, but is automatically converted to the highest performance mode, and when standby database returns to normal, Primary The database will automatically switch to the highest availability mode.

Maximum performance (Maximum performance)

This is a default protection mode. Transactions can be submitted at any time, the current primary database redo data need to write at least one standby database, but this way does not wait for the standby database to write the acknowledgment so this write is asynchronous write.

3. In the E-R model, the basic components contained are ()

Entity, contact, attribute

Database Exercises (December 16, 16)--New Ket Network

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.