select id from tbname
where date between date_sub(now(),INTERVAL 1 WEEK) and now();
More Related Contents:
- How to select the nth row in a SQL database table?
- MySQL Query GROUP BY day / month / year
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- Error Code: 2013. Lost connection to MySQL server during query
- Storing JSON in database vs. having a new column for each key
- Difference between two dates in MySQL
- How do I restore a dump file from mysqldump?
- Using an Alias in SQL Calculations
- Can a table field contain a hyphen?
- Adding a leading zero to some values in column in MySQL
- SQL Query to show nearest date?
- View’s SELECT contains a subquery in the FROM clause
- Check for x consecutive days – given timestamps in database
- MySQL Insert Into from one Database in another
- How do I get the ID of multiple inserted rows in MySQL?
- How to insert data to MySQL with auto-incremented column(field)?
- Case statement in MySQL
- Replace Into Query Syntax
- Remove special characters from a database field
- MySQL query, MAX() + GROUP BY
- How to get multiple records against one record based on relation?
- MySQL – Replace Character in Columns
- Create date from day, month, year fields in MySQL
- FIND_IN_SET with multiple value [duplicate]
- Foreign key constraints: When to use ON UPDATE and ON DELETE
- How to use a user variables in MySQL LIKE clause?
- MySQL: Insert datetime into other datetime field
- Selecting distinct 2 columns combination in mysql
- How to store a one to many relation in MySQL database?
- MySQL – Complexity of: SELECT COUNT(*) FROM MyTable;