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

MySQL period_add()函数

period_add()是MySQL日期/时间函数。此功能将给定时期的给定月份数添加到格式YYMM或YYYYMM中。

语法

select period_add(period, number);

参数:

期间: 格式为YYMM或YYYYMM的期间值
num:

返回:

此函数返回格式为YYYYMM的结果。

示例1

Select period_add(201808,2);
输出:

MySQL日期时间period_add()函数

示例2

Select period_add(201210,2);
输出:

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