Ask a BBS short message to send a group of SQL statements. At the end of this post, xroha edited the DISCUZ short message group data table from 2013-04-. how can I query short messages that I have not read? ------ Solution -------------------- select & nbsp ask an SQL statement sent by a group of short messages in a forum.
This post was last edited by xroha at 14:28:50
The above is the DISCUZ short message group data table. how can I query short messages that the user has not read?
------ Solution --------------------
Select * from user record table a inner join message Table B on a. gpmid = B. id where a. status = 0
------ Solution --------------------
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.
------ Solution --------------------
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.