Is this possible with mysql?

前端 未结 6 1937
走了就别回头了
走了就别回头了 2021-01-16 12:42

First of all: sorry for the title, but maybe I will find a better one later.

I asked this some minutes ago, but since I was not able to describe what I want I try it

6条回答
  •  情歌与酒
    2021-01-16 12:59

    Instead of relying on session table, I suggest you to create separate table, which stores 2 fields, date and user_id. Every time user logs-in you need to insert new entry into this table.

    This way you will be able to retrieve all the 3 requirement of yours.

提交回复
热议问题