Ask a BBS short message to send a group of SQL statements. -Php Tutorial

Source: Internet
Author: User
Ask a BBS short message to send a group of SQL statements. The above is the DISCUZ short message group data table. how can I query short messages that the user has not read?


Reply to discussion (solution)

Select * from user record table a inner join message Table B on a. gpmid = B. id where a. status = 0

Select * from user record table a inner join message Table B on a. gpmid = B. id where a. status = 0

Sorry, I cannot clearly describe the problem,
I mean, to query short messages that each user has not read,
That is, user a no longer displays the data after reading the data, but if user B does not read the data, the data is displayed.

I don't know how your data is processed step by step. we recommend that you paste the test data and expected results and briefly describe the logical relationship.

Selece uid pre_common_member_grouppm where status = 0
All users who want to read short messages
It is up to you to decide how to do this in the future.

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.