查詢某段時間用戶登陸信息,而且當前版本不是1.72


SELECT
    user_account.account AS 帳號,
    FROM_UNIXTIME(
        user_account.registerTime / 1000,
        '%Y-%m-%d'
    ) AS 註冊時間,
    user_info.chineseName AS 姓名,
    user_info.uid 用戶ID,
    user_info.personIUCode AS 用戶行業,
    account_extension.curVersion 當前版本,
    FROM_UNIXTIME(
        user_account.lastActive / 1000,
        '%Y-%m-%d'
    ) 最後活躍日期,
    user_info.mobilePhone AS 手機號碼
FROM
    user_account
INNER JOIN account_extension ON account_extension.uid = user_account.uid
INNER JOIN user_info ON user_info.uid = user_account.uid
WHERE
    account_extension.curVersion NOT IN ('1.72', '1.720')
AND user_account.lastActive >= UNIX_TIMESTAMP('2016-03-27') * 1000
AND user_account.lastActive <= UNIX_TIMESTAMP('2016-04-26') * 1000;ui

 

相關文章
相關標籤/搜索