Python语言基础
Python语言进阶
Python数据结构

MySQL to_day()函数

to_days()是MySQL日期/时间函数。它用于将日期转换为天数。

语法

select to_days(date);

参数:

date: 要转换为天数的日期。

示例1

select to_Days('2018-10-03');
输出:

MySQL日期时间to_day()函数

示例2

select to_Days('1995-02-11');
输出:

MySQL日期时间to_day()功能
昵称: 邮箱:
Copyright © 2022 立地货 All Rights Reserved.
备案号:京ICP备14037608号-4