网站首页 站内搜索

搜索结果

查询Tags标签: No,共有 1066条记录
  • MySql快速插入百万级数据

    通过存储过程插入 如果我们想简单快速的插入大批量数据,存储过程是个不错的选择,下面这个存储过程,是我向表xxx_audit_order中插入100万条数据,耗时25秒左右,这里建议:1.插入数据前先把表中的索引去掉,数据插入完成之后,再创建索引2.关闭事务的自动提交以上两点对…

    2022/7/21 2:23:36 人评论 次浏览
  • 【Redis】配置

    【Redis】配置 spring boot 配置spring:redis:database: 5host: redisport: 6379password: dyt#88352636timeout: 60000mslettuce:pool:max-active: 100max-idle: 20max-wait: 3000ms 5.0 默认配置# Redis configuration file example. # # Note that in order to read th…

    2022/7/16 2:21:35 人评论 次浏览
  • centos7提示cannot create temp file for here-document: No space left on device解决方案

    一、使用 df -h 命令查看,发现/根目录的剩余空间为0。总共系统盘容量才50G。 可见 /dev/mapper/centos-root 目录 也就是/根目录 空间已使用完毕 二、使用 cd / && du -h -x --max-depth=1查看哪个目录占用过高,对于过高目录中的内容适当删减文件 var目录占用过…

    2022/7/14 5:20:33 人评论 次浏览
  • [BZOJ-1280]猪 题解

    题目题目描述 Emmy在一个养猪场工作。这个养猪场有M个锁着的猪圈,但Emmy并没有钥匙。顾客会到养猪场来买猪,一个接着一个。每一位顾客都会有一些猪圈的钥匙,他们会将这些猪圈打开并买走固定数目的猪。所有顾客有的钥匙和他们需要买猪的数量在事先都告诉了Emmy,于是Emm…

    2022/7/12 6:22:10 人评论 次浏览
  • MySQL字段内容拆分及合并

    1. 创建测试表及数据-- 创建一张tb_stu表 CREATE TABLE tb_user( id INT PRIMARY KEY AUTO_INCREMENT, NAME VARCHAR(10) COMMENT 人名, c_no VARCHAR(64) COMMENT 持剑ID,以逗号分隔 ); INSERT INTO tb_user(NAME,c_no) VALUES(蘧伯玉,1,3,5,7); INSERT INTO tb_user(NA…

    2022/7/12 2:20:13 人评论 次浏览
  • Codewars note: Convert boolean values to strings 'Yes' or 'No'

    >> False >> No >>True >> Yes Solutions: 1def bool_to_word(boolean):return "Yes" if boolean else "No"2def bool_to_word(boolean):return [No, Yes][boolean]def bool_to_word(boolean):return [No, Yes][boolean]bool…

    2022/7/10 23:51:25 人评论 次浏览
  • ABC259总结

    比赛地址 比赛情况 排名:1066 / 7295 AC:5 / 8 题目分析 A 签到题 B 考察:网络资源搜集利用能力 显然数学没学过,然后就搜资料 先把度数转为弧度,然后套三角函数C 先缩串,把重复的合起来 如果长度不同直接No 某个字母不同,直接No 具体到某个字母,如果长度不到,\(…

    2022/7/9 23:52:42 人评论 次浏览
  • mysql从binlog中恢复数据

    查看mysql是否开启binlog show variables like %log_bin%;查询文件目录 show variables like %datadir%;查看所有binlog日志文件列表 show master logs;刷新日志,开启一个新的编号 flush logs清空所有binlog日志命令 reset master查看binlog文件内容,使用查看工具 方法一…

    2022/7/6 2:20:18 人评论 次浏览
  • Python | 浅学 | 7 NameError: name 'cmp' is not defined | AttributeError: module 'oper

    NameError: name cmp is not defined **报错原因:**因为python3.x中cmp函数去掉了,如果需要实现比较功能,那么可引入operator 模块,提供了6个比较运算符。gt lt ge eq le import operator #首先要导入运算符模块operator # integers x,y = 100,200 print(…

    2022/7/3 14:22:56 人评论 次浏览
  • python: can't open file 'upload.py': [Errno 2] No such file or directory

    为了发博客方便,参考别人的文章(见参考文章:[1][2]),使用 Metaweblog 和 pycnblog([3])插件实现相关功能,将本地markdown文件同步至博客园。 使用过程中,出现如下错误信息:python: cant open file upload.py: [Errno 2] No such file or directory图1. cant open fi…

    2022/7/3 14:19:27 人评论 次浏览
  • 解决:django.db.utils.OperationalError: no such table: auth_user

    解决:django.db.utils.OperationalError: no such table: auth_user 我们在创建Django项目的时候已经创建这个表了,表一般都保存在轻量级数据库中 只需要同步一下再执行即可 python manage.py migrate python manage.py createsuperuser 在setting.py下的ALLOWED_HOSTS=…

    2022/7/2 23:21:37 人评论 次浏览
  • Mysql 1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregate 报错解决方案

    报错信息:1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘xxxx.xxxx.xxx’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by, Time:…

    2022/7/2 2:20:31 人评论 次浏览
  • Redis Issues

    主从不同步 Error condition on socket for SYNC: No route to host 可能的原因:网络不通; 防火墙拦截NOAUTH Authentication required 从库未配置参数masterauth,值为主库的requirepass Partial resynchronization not possible (no cached master) 从库出现 Partial …

    2022/6/30 2:49:31 人评论 次浏览
  • 找第一个只出现一次的字符

    题目描述 给定一个只包含小写字母的字符串,请你找到第一个仅出现一次的字符。如果没有,输出no。输入格式 一个字符串,长度小于100000。输出格式 输出第一个仅出现一次的字符,若没有则输出no。输入样例 abcabd输出样例 c#include<iostream> using namespace std;…

    2022/6/26 23:20:32 人评论 次浏览
  • Oracle 安装图形化调用 No X11 DISPLAY variable was set, but this program performed an operation which requir

    这次调用图形化竟然。。。1、xhost + IP(LINUX本身)显示added[root@rhel76 ~]# xhost + 192.168.137.22192.168.137.22 being added to access control list 2、切换到oracle[root@rhel76 ~]# su - oracle[oracle@rhel76 ~]$ cd \$ORACLE_HOME这时候还是调用不出来[oracle…

    2022/6/26 2:22:03 人评论 次浏览
扫一扫关注最新编程教程