在使用golang go sql driver操作mysql时,往tag表插入一条新数据时,如果插入失败,id仍会自增,插入数据失败次数过多时,id就看起来十分混乱。 所以我就在搜索下原因,发现是InnoDB的机制,大致就是说InnoDB的innodb_autoinc_lock_mode模式下,自增 ...
分类:
数据库 时间:
2020-01-27 15:47:20
阅读次数:
209
//创建treeCombox.jsExt.define('Redm.commons.TreeCombox', { extend : 'Ext.form.field.Picker', xtype : 'treecombox', triggerCls : Ext.baseCSSPrefix + 'for ...
分类:
Web程序 时间:
2020-01-20 20:39:30
阅读次数:
98
"""multiprocessing提供了threading包中没有的IPC(进程间通信),效率上更高。应优先考虑Pipe和Queue,避免使用Lock/Event/Semaphore/Condition等同步方式(因为它们占据的不是用户进程的资源)。multiprocessing包中有Pipe类和 ...
分类:
其他好文 时间:
2020-01-19 00:31:47
阅读次数:
107
引言 我在练手的时候发现后端返回的数据可以通过两种方式渲染 (自己遇到的 可能你都会 哈哈哈) 后端传过来的数据函数 from django.http import JsonResponse def record_detailed(request): all_record = models.Reco ...
分类:
其他好文 时间:
2020-01-17 18:48:55
阅读次数:
77
Allowance As a reward for record milk production, Farmer John has decided to start paying Bessie the cow a small weekly allowance. FJ has a set of coi ...
分类:
其他好文 时间:
2020-01-16 23:42:36
阅读次数:
117
# 学习记录 || Coding_Record # # LRU 比较常见的页面置换算法。*leetcode 146 # 个人简易实现(Java) 1 import java.util.HashMap; 2 3 4 class LRUCache { 5 6 public static class No ...
分类:
其他好文 时间:
2020-01-15 19:14:35
阅读次数:
101
初始化SQL DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, `password` varchar(32 ...
分类:
编程语言 时间:
2020-01-15 15:32:34
阅读次数:
92
包含两个类:Employee及Dataset //employee.h #pragma once #include<string> namespace Record { const int kDefaultstartingSalary = 30000; class Employee { public ...
分类:
编程语言 时间:
2020-01-15 09:51:11
阅读次数:
95
jQuery 事件 - change() 方法 当输入域发生变化时改变其颜色: $(".field").change(function(){ $(this).css("background-color","#FFFFCC"); }); 定义和用法 当元素的值发生改变时,会发生 change 事件。 ...
分类:
Web程序 时间:
2020-01-14 19:03:59
阅读次数:
304
The table does not comply with the requirements by an external plugin.
分类:
其他好文 时间:
2020-01-14 11:37:48
阅读次数:
177