Mysql 时间字段(加上或者减去一段时间)
摘要:Mysql时间加减函数为date_add()、date_sub() 定义和用法DATE_ADD() 函数向日期添加指定的时间间隔。DATE_SUB() 函数向日期减少指定的时间间隔。语法DATE_ADD(date,INTERVAL expr type)DATE_SUB(date,INTERVAL e
阅读全文
MySQL出现警告:Integer display width is deprecated and will be removed in a future release
摘要:解决方法:不指定宽度如:INT 后面不要加宽度 Integer display width is deprecated and will be removed in a future release:整数显示宽度已弃用,将在以后的版本中删除 对于整数数据类型如INT [M],M指示显示宽度,对于浮点
阅读全文
oracle 查看表空间以及剩余量
摘要:--1、查看表空间的名称及大小 SELECT t.tablespace_name, round(SUM(bytes / (1024 * 1024)), 0) ts_size FROM dba_tablespaces t, dba_data_files d WHERE t.tablespace_nam
阅读全文