!/bin/bash##################################Author:xgmin##Version:1.0##Date:20191121################################yumcleanall&&yumrepolistyuminstallvimtree-y#安装keepalived####################
分类:
数据库 时间:
2020-06-12 16:15:59
阅读次数:
162
1.获取当前日期 如2020-13-22 current_date() 或者current_date 获取当前时间:from_unixtime(unix_timestamp()) -->返回格式:yyyy-MM-dd HH:mm:ss :current_timestamp() -->返回格式:yyy ...
分类:
数据库 时间:
2020-06-12 16:05:54
阅读次数:
58
公司使用的是postgresql数据库 今天在写项目的时候,遇到了这样一个问题,自己写出的sql语句,如果一次性全部查询出来一共有24条数据,这24条数据也是按照bussinessdate进行降序排列的,显示的最近日期就是自己今天操作的,2020-06-11 但是如果自己加上分页,控制每页显示10条 ...
分类:
数据库 时间:
2020-06-11 23:21:01
阅读次数:
229
--日期转时间戳 SELECT EXTRACT(epoch FROM NOW()); SELECT EXTRACT(epoch FROM CAST('2017-12-06 00:17:10' AS TIMESTAMP)); --时间戳转日期 SELECT TO_TIMESTAMP(151249063 ...
分类:
数据库 时间:
2020-06-11 21:24:05
阅读次数:
177
在用户根目录创建个filebeat.docker.yml文件,文件内容如下 filebeat.config: modules: path: ${path.config}/modules.d/*.yml reload.enabled: false filebeat.autodiscover: prov ...
分类:
其他好文 时间:
2020-06-11 18:10:21
阅读次数:
115
pg_ctl 名称 pg_ctl -- 启动、停止、重启 PostgreSQL 语法 pg_ctl start [-w] [-s] [-D datadir] [-l filename] [-o options] [-p path]pg_ctl stop [-W] [-s] [-D datadir] ...
分类:
数据库 时间:
2020-06-11 10:32:30
阅读次数:
125
在建表时: `create_time` timestamp not null default current_timestamp comment'创建时间',--将系统当前时间设为默认值 `update_tiem` timestamp not null default current_timesta ...
分类:
其他好文 时间:
2020-06-11 01:03:08
阅读次数:
62
# coding=utf-8 import os import time path = os.getcwd() index = 0 while True: # 当前时间戳 timestamp = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) ...
分类:
编程语言 时间:
2020-06-10 21:24:43
阅读次数:
88
十四、PostgreSQL12.2企业级应用系列公开课:调优系列公开课(一)1、如何获得慢查询的SQL语句2、常见参数设置因子与应用案例2.1、shared_buffers2.2、wal_buffers2.3、work_mem2.4、maintenance_work_mem2.5、fsync2.6、synchronous_commit2.7、checkpoint_timeout,checkpoin
分类:
数据库 时间:
2020-06-10 17:22:55
阅读次数:
78
DateUtils.java package com.alphajuns.ssm.util; import org.apache.commons.lang.time.DateFormatUtils; import java.sql.Timestamp; import java.text.ParseE ...
分类:
其他好文 时间:
2020-06-10 11:20:10
阅读次数:
54