Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 MYSQL 的新手。基本上我想在 where 子句中提取特定年份的表中的所有详细信息
示例我的表 emp 中有一个日期列,例如:2012-01-12
我不知道查询。
select * from emp where ??
使用年份函数:
SELECT * FROM emp WHERE YEAR(dateColumnName)=2012