当用户注册时,我在数据库日志中存储了一个字段。对于某些功能,他们只有在不到一年前注册的情况下才能使用。这可以通过单个查询进行搜索吗?
select * from your_table
where registration_date > curdate() - interval 1 year
当用户注册时,我在数据库日志中存储了一个字段。对于某些功能,他们只有在不到一年前注册的情况下才能使用。这可以通过单个查询进行搜索吗?
select * from your_table
where registration_date > curdate() - interval 1 year