当前位置: 首页 > news >正文

一个空间放2个网站青岛网页搜索排名提升

一个空间放2个网站,青岛网页搜索排名提升,贵州网站推广优化,网页开发需要多少钱目录 current_timestamp()获取当前时间unix_timestamp()获取当前时区的UNIX时间戳from_unixtime()时间戳转日期函数unix_timestamp(string date)日期转时间戳函数提取日期中的年月日时分秒weekofyear (string date)日期转周函数日期比较函数datediff(string enddate, string st…

目录

  • current_timestamp()获取当前时间
  • unix_timestamp()获取当前时区的UNIX时间戳
  • from_unixtime()时间戳转日期函数
  • unix_timestamp(string date)日期转时间戳函数
  • 提取日期中的年月日时分秒
  • weekofyear (string date)日期转周函数
  • 日期比较函数datediff(string enddate, string startdate)
  • 日期增加/减少函数

current_timestamp()获取当前时间

select current_timestamp();

输出:2023-11-23 11:31:31.531

unix_timestamp()获取当前时区的UNIX时间戳

select unix_timestamp();

输出:1700710598

from_unixtime()时间戳转日期函数

select from_unixtime(1700710598);

输出:2023-11-23 11:36:38

unix_timestamp(string date)日期转时间戳函数

select unix_timestamp('2023-11-23 11:36:38');

输出:1700710598

提取日期中的年月日时分秒

> select year(current_timestamp());

输出:2023

select month(current_timestamp());

输出:11

select day(current_timestamp());

输出:23

select hour(current_timestamp());

输出:13

select minute(current_timestamp());

输出:39

select second(current_timestamp());

输出:25

weekofyear (string date)日期转周函数

select weekofyear(current_timestamp());

输出:47

日期比较函数datediff(string enddate, string startdate)

select datediff(current_timestamp(),'2023-11-20');

输出:3

日期增加/减少函数

date_add(string startdate, int days)
date_sub (string startdate, int days)

select date_add(current_timestamp(),3);

输出:2023-11-26

select date_sub(current_timestamp(),3);

输出:2023-11-20

http://www.yayakq.cn/news/337217/

相关文章:

  • 二级网站建设标准东凤镇 网站建设
  • 如何上传到自己的网站公司做一个网站内容如何设计方案
  • 网站推广分销系统wordpress 不支持中文
  • 网站备案证书查询上海高端网站建
  • 云服务器 网站厦门建设局网站技司学校
  • 网站服务器停止响应是什么意思公司宣传片的拍摄
  • 搜索案例的网站有哪些和易企秀类似的软件免费的
  • 设计素材网站排版石家庄规划建设局网站
  • 自学网站建设青岛公司网站建设
  • 新北区城乡建设局网站烟台建网站哪家好
  • 可以做图片视频的网站网站备案在哪儿
  • wordpress可以做下载站吗粘土做龙网站视频
  • 做微信小程序的网站设计素材网站千图网
  • 网站建设如何搞活动展示型网站 asp.net
  • 个人网站尺寸怎么做hello官方网站
  • 法拍房北京网站网络服务器端口怎么查
  • 自己做文学网站赚钱吗百度快照不更新怎么办
  • 高端网站建设哪些好做外贸网站咨询
  • it 网站模板南充建网站的资料
  • 泰州企业网站建站模板wordpress首页不加载图片
  • 建设官方网站怎么修改预留手机全球设计风向
  • 网站建设与管理找工作黑马培训是正规学校吗
  • 重庆网站建设推广优化自己怎么用h5做网站
  • 官方网站下载qq最新版网站建设客户开发方案
  • 大型国企网站建设费用网站开发实用技术答案
  • 广州网站建设 致茂wordpress外链跳转
  • 吉林移动网站河北建投商务网电子招标采购平台
  • 用路由器建设网站网站权重为零
  • 用ps做美食网站k98s播放器
  • 昆明快速建站模板网页型网站