Auto commit
This commit is contained in:
parent
5859485f29
commit
71ea2b0d21
@ -584,11 +584,20 @@ TIMESTAMPDIFF(YEAR,s.birth,NOW())-1, TIMESTAMPDIFF(YEAR,s.birth,NOW()))
|
|||||||
FROM students s;
|
FROM students s;
|
||||||
|
|
||||||
#42.查询本周过生日的学生
|
#42.查询本周过生日的学生
|
||||||
|
SELECT *
|
||||||
|
FROM students s
|
||||||
|
WHERE WEEKOFYEAR(s.birth) = WEEKOFYEAR(NOW());
|
||||||
#43.查询下周过生日的学生
|
#43.查询下周过生日的学生
|
||||||
|
SELECT *
|
||||||
|
FROM students s
|
||||||
|
WHERE WEEKOFYEAR(s.birth) = WEEKOFYEAR(NOW()) + 1;
|
||||||
#44.查询本月过生日的学生
|
#44.查询本月过生日的学生
|
||||||
|
SELECT *
|
||||||
|
FROM students s
|
||||||
|
WHERE MONTH(s.birth) = MONTH(NOW());
|
||||||
#45.查询下月过生日的学生
|
#45.查询下月过生日的学生
|
||||||
|
SELECT *
|
||||||
|
FROM students s
|
||||||
|
WHERE MONTH(s.birth) = MONTH(NOW()) + 1;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user