This article is a mirror article of machine translation, please click here to jump to the original article.

View: 23665|Reply: 3

[Webmaster Communication] discuz queries users who have not logged in within half a year

[Copy link]
Posted on 4/23/2018 10:47:21 AM | | | |
dz's database dictionary pre_common_member_status user status table

  • uid, mediumint, member id,
  • regip, char, registered IP,
  • lastip, char, last login IP,
  • port, smallint, last login port number,
  • lastvisit, int, last visited time,
  • lastactivity, int, last activity,
  • lastpost, int, last published,
  • lastsendmail, int, the last email sent home original field is lastsend,
  • invisible, tinyint, incognito login,
  • buyercredit, smallint, buyer credit rating and points,
  • sellercredit, smallint, seller credit score and points,
  • favtimes, mediumint, personal space favorites,
  • sharetimes, mediumint, personal space shares,
  • profileprogress, tinyint, profile completion,


Let's check whether it is a "pre_common_member_status" table, as shown in the figure below:



The advantage of using timestamps to store time is that the query efficiency is high, the speed is fast, and the efficiency of querying data in a certain period of time is much higher with timestamps than with time

We query users who have not logged in after January 1, 2018, and the SQL statement is as follows:



After we know the UID of these users, we want to query the username and email address of the user, how should we query it? The user table of dz is stored in the "pre_ucenter_members" table, we need to join the table query, the sql is as follows:







Previous:Why not give MB to set avatars
Next:Mobile phone text messages, remote access to source code of call content
Posted on 7/11/2018 9:58:19 AM |

Check the user's email address and QQ contact information
 Landlord| Posted on 11/1/2018 1:01:57 PM |
Export the user's email address

 Landlord| Posted on 11/29/2020 8:23:22 PM |
Query the IP address of the login user

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com