MySQL Basic learning knowledge points

Source: Internet
Author: User

"Watch and learn"

1.mysql does not support top X usage and supports the limit x, Y usage;

2. Multi-Table Connection query
1. Table1 INNER join table2: Inner connection. Only the intersection rows of the two tables that are connected are displayed.
2. Table1 LEFT JOIN table2: outer connection. Displays all rows of the Table1, even if there are no matching rows in table2.
3. Table1 Right join table2: Left outer connection. Displays all rows of the table2, even if there are no matching rows in table1z.
4. Table1 Full JOIN table2: Even if the rows in Table1 do not match in table2, or the rows in Table2 do not match in Table1. It still returns all matching rows in two tables of Table1 and table2.

3. Type int (M)

1 bytes = 8 bit, a byte can represent a maximum of 2 of the length of the data 8 square, in the computer is 128 to 127

tinyint a byte, smallint two bytes, mediumint three bytes, int four bytes, BIGINT eight bytes.

BIT[M] Bit field type, M represents the number of bits per value, range from 1 to 64, if M is ignored, default is 1

MySQL Basic learning knowledge points

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.