current_date()是MySQL日期/时间函数。它用于获取当前日期。
select current_date();
current_date()函数返回当前日期。如果在字符串上下文中使用,它将以" YYYY-MM-DD"格式返回当前日期。如果在数字上下文中使用,它将以YYYYMMDD格式返回当前日期。
链接:https://www.learnfk.comhttps://www.learnfk.com/mysql/mysql-current-date-function.html
来源:LearnFk无涯教程网
select current_date();
输出:
select current_date()+2;
输出:
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)