当前位置:网站首页>[MySQL] current date minus one day field year month day -1 day
[MySQL] current date minus one day field year month day -1 day
2022-07-21 05:42:00 【CTRA Wang dada】
1、mysql Data sheet & Business needs
We need to be right about varchar Type field , MM DD YY date -1 Day operation
2、 Brush date minus 1 Day method
Format here :‘%Y-%m-%d’ The format of the generated string is 2022-07-11 In this way , If you don't need such , You can check the string you want by yourself
UPDATE report_spent SET cost_date=DATE_FORMAT(DATE_SUB(cost_date,INTERVAL 1 DAY),'%Y-%m-%d');
边栏推荐
- 【mysql】当前日期减一天 字段年月日-1天
- R 语言作业三
- 刚入门软件测试行业的女生就能月薪过万骗局解秘
- PHP registration user requirements
- 工业4.0数字孪生下的应用案例
- (第二章一一栈与队列)第三节 队列的顺序存储结构
- 什麼是棧?
- Tp5.1 controller initialization initialize (inherit public file initialization)
- Iptables firewall experiment
- Tp5.1 open the web address and output the web page code without transformation and rendering (template return $this- & gt; fetch() return view();)
猜你喜欢
R language RMD output has Chinese, how to remove Chinese
什么是栈?
Vs2017 modify the default include directory and Library Directory
Online education project integration swagger
Two common ways of communication between VLANs
Qu'est - ce qu'une pile?
牛客网刷题训练(二)
长沙大屏开发
Bardecodefiler split and rename TIF documents
Routing of upper layer loops in VRRP
随机推荐
Object.defineProperty使用
Routing of upper layer loops in VRRP
BBC follow-up 49 years: seven years of life for the poor and the rich
Regular expression matching URL
Make your ggplot2 support markdown syntax
《BBC 跟拍 49 年:穷人与富人的人生七年》
Spark efficient data analysis 04. RRD creation
youtube下载及(批量)下载
R语言 | jiebaR 词频统计
php 生成sitemap
R 语言求最值问题
Rapid drawing of multivariate regression analysis forest map with R language
什么是栈?
【C语言刷LeetCode】731. 我的日程安排表 II(M)
什麼是棧?
6.0 保存银联参数出错:Unable to open file
CAD完美转ArcGIS的操作方法技巧
Theoretical basis of multithreading
ASP. Net core custom Middleware
JS lose focus get value