Mysql solution-php Tutorial

Source: Internet
Author: User
Mysql I have a user table with numbers and other information. I also have a table with addresses and other information. there is no number in the table, and both tables have mailboxes, query all the information in the second table and add the number of the first table. It is a simple query, but I can't think of it: mysql
I have a user table containing numbers and other information. I also have a table,
There is no number in the address and other information. both tables have email addresses. query all the information in the second table and add the number of the first table.
It's a simple query, but I can't think of it.

Share:


------ Solution --------------------
Select T1.number, T2. * from table1 T1, table2 T2 where T1.id = $ id AND T2.id = $ id
This is probably the case.

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.