str_to_date ()函数 1.含义:是将时间格式的字符串(str),按照规定的显示格式(format)转换为DATETIME类型 2.语法: str_to_date(str,format) 3.例子: 这种一般在业务场景中使用较多 SELECT STR_TO_DATE('20200514', ...
分类:
数据库 时间:
2020-05-14 14:57:17
阅读次数:
142
string sql = string.Format(@"insert into Table(FileSize,FileType,FilePath,FileExtName,OldFileName,NewFileName,FileHash,CreateTime,DeleteFlag) values(@ ...
分类:
数据库 时间:
2020-05-14 11:30:34
阅读次数:
75
JsonSerializerSettings jss = new JsonSerializerSettings(); jss.NullValueHandling = NullValueHandling.Ignore; var data = JsonConvert.SerializeObject(lp ...
分类:
其他好文 时间:
2020-05-14 11:08:26
阅读次数:
64
一、Legacy和UEFI模式,两者区别? uefi和legacy是两种不同的引导方式。uefi是新式的BIOS,legacy是传统BIOS。在UEFI模式下安装的系统,只能用UEFI模式引导;在Legacy模式下安装的系统,也只能在legacy模式下进系统。 二、磁盘数据擦除 1.首先进入raid ...
分类:
其他好文 时间:
2020-05-14 01:55:42
阅读次数:
166
2. 备份类型 2.1 热备 在数据库正常业务时,备份数据,并且能够一致性恢复(只能是innodb) 对业务影响非常小 2.2 温备 锁表备份,只能查询不能修改(myisam) 影响到写入操作 2.3 冷备 关闭数据库业务,数据库没有任何变更的情况下,进行备份数据. 业务停止 3. 备份方式及工具介 ...
分类:
数据库 时间:
2020-05-14 01:05:37
阅读次数:
92
hashCode public int hashCode() { int h = hash; if (h == 0 && value.length > 0) { //hash 默认值为0(此时还没有计算hash) && String中的字节数组有值(使用 String str="avc"; hash ...
分类:
其他好文 时间:
2020-05-13 23:17:30
阅读次数:
66
kata-containers 接入docker containerd cri-o
分类:
其他好文 时间:
2020-05-13 21:46:50
阅读次数:
81
1.用requests库的ge()函数反问一个网站20次,打印返回状态,text()内容,计算text()属性和content()属性所返回网页内容的长度。 1 import requests 2 for i in range(20): 3 r=requests.get("http://www.go ...
分类:
其他好文 时间:
2020-05-13 16:45:39
阅读次数:
55
use information_schema; select table_name,table_rows from tables where TABLE_SCHEMA = '数据库的名称' order by table_rows desc; ...
分类:
数据库 时间:
2020-05-13 15:20:03
阅读次数:
88
登录进入mysql,执行show variables like 'log_bin';查看是否开启 退出 修改配置文件 vim my.cnf 在[mysqld] 添加一下内容 log_bin=mysql_bin binlog-format=Row server-id=1 系统变量binlog_form ...
分类:
数据库 时间:
2020-05-13 13:56:05
阅读次数:
77