在使用golang go sql driver操作mysql时,往tag表插入一条新数据时,如果插入失败,id仍会自增,插入数据失败次数过多时,id就看起来十分混乱。 所以我就在搜索下原因,发现是InnoDB的机制,大致就是说InnoDB的innodb_autoinc_lock_mode模式下,自增 ...
分类:
数据库 时间:
2020-01-27 15:47:20
阅读次数:
209
$$2013 2014\ ACM ICPC,\ NEERC,\ Eastern\ Subregional\ Contest$$ $A.Podracing$ $B.The\ battle\ near\ the\ swamp$ 签到 $J.The\ secret\ module$ ...
分类:
其他好文 时间:
2020-01-27 09:31:06
阅读次数:
76
[//title]:(解决vscode出现两个光标的问题) [//englishTitle]:(vscode two cursors in vim mode) [//category]:(vscode,vim,problem solved) [//tags]:(vscode) [//createTi ...
分类:
其他好文 时间:
2020-01-27 00:05:36
阅读次数:
477
1. 开机点esc进入启动选项->enter setup->按F7进入Advanced Mode(F7)->移动到security菜单将secure boot control改成disable, ->然后去boot菜单将CSM Support改成enable, ->按F10保存 2.重新开机点按es ...
分类:
移动开发 时间:
2020-01-26 23:45:13
阅读次数:
102
Not in a hypervisor partition (HVP=0) (VERR_NEM_NOT_AVAILABLE). VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED). 返回 代码: ...
分类:
其他好文 时间:
2020-01-26 20:56:44
阅读次数:
113
它的产生主要是由于程序对用户输入的数据没有进行严格的 过滤,导致非法数据库查询语句的执行。 而且,SQL Injection 也很难防范。网站管理员无法通过安装系统补丁或者进行简 单的安全配置进行自我保护,一般的防火墙也无法拦截 SQL Injection 攻击 结果发现,这次记录没有插入成功,给出 ...
分类:
数据库 时间:
2020-01-26 17:42:59
阅读次数:
74
转自:https://blog.csdn.net/June7_/article/details/99991680 问题描述 使用Django框架,在使用model操作数据库的时候,出现 Django "OverflowError: Python int too large to convert to ...
分类:
编程语言 时间:
2020-01-26 16:01:59
阅读次数:
118
1. 抽象 2. 三大特性-封装 2.1 封装 2.2 封装的好处和实现 2.3 封装的实现步骤 package model import "fmt" type person struct { Name string age int //其它包不能直接访问.. sal float64 } //写一个 ...
分类:
其他好文 时间:
2020-01-25 10:30:52
阅读次数:
75
文件操作:1.打开文件f = open(name,mode)name:文件名的字符串mode:访问模式(只读,写入,追加等)2.读写等操作date = f.read()3.关闭文件f.close()模式详解:如果省略书写访问模式,则访问模式默认为r或rb.通常只用主模式读写文件r 以只读方式打开文件 ...
分类:
其他好文 时间:
2020-01-25 10:29:53
阅读次数:
99
为什么week1这么难做。。。 MISC 1,欢迎参加HGame! base64解码后为摩斯码,解码得flag 2,壁纸 binwalk提取出压缩包,发现密码为图片id,用https://saucenao.com找到p站id得flag 3,签到proplus 现根据password.txt,对内容进 ...
分类:
其他好文 时间:
2020-01-24 23:38:44
阅读次数:
486