获取上个月的最后一天的方法

来源:互联网 发布:mssql server 2008 r2 编辑:程序博客网 时间:2024/05/17 03:50
DateTime dateTime = new DateTime();dateTime.plusDays(-DateTime.now().plusMonths(1).getDayOfMonth()).toString("YYYY-MM-dd");


查看Linux的版本:

cat /etc/redhat-release

查看数据库各个表的使用量:

USE information_schema;

select table_schema,table_name,table_rows,concat(round(data_length/1024/1024,2),'MB') as size from tables where table_schema='数据库名字' order by table_rows desc;
0 0
原创粉丝点击