PAT甲级: 1089 Insert or Merge (25分) 题干 According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorte ...
分类:
其他好文 时间:
2020-05-05 00:32:19
阅读次数:
62
DB facade实现CURD(操作数据库 手写原生SQL语句) use Illuminate\Support\Facades\DB;插入数据 (返回bool 插入是否成功) /$result = DB::insert('insert into student(name,age) values(?, ...
分类:
其他好文 时间:
2020-05-04 21:11:14
阅读次数:
69
场景一: 部分在更新进程里,部分不在更新进程里 1、事务一致 ...... insert tab1 "此行执行失败 call function in update task (insert tab2) ” 此行不执行 commit work ...... 2、事务不一致 ...... call fu ...
分类:
其他好文 时间:
2020-05-04 19:04:31
阅读次数:
45
【1】错误信息 情况1:无论是alter,还是 insert 数据,都报这类错误。 情况2:实际上日志文件很小,而且增长也未限制,磁盘盘符也有空间 【2】原因分析 (1)查看磁盘是否有空间 (2)查看事务日志增长是否设置了最大大小限制 (3)事务日志文件本身太小,而增长率又太小,导致一次增长的空间还 ...
分类:
数据库 时间:
2020-05-04 15:24:49
阅读次数:
70
deque.insert(pos,elem); //在pos位置插入一个elem元素的拷贝,返回新数据的位置。 1 #include <iostream> 2 #include <deque> 3 4 using namespace std; 5 6 int main() 7 { 8 deque<i ...
分类:
其他好文 时间:
2020-05-03 21:51:02
阅读次数:
112
获取连接, 释放连接 导入mysql driver, 导入druid连接池,导入Dbutils(queryRunner) druid连接db 注意点: 正确的 String sql = "insert into t_book( ,`author price sales stock img_path` ...
分类:
数据库 时间:
2020-05-03 10:41:57
阅读次数:
80
T1:人生
T2:赢家(winner)
T3:黑红兔
明明不是什么都做不到 ...
分类:
其他好文 时间:
2020-05-02 18:45:20
阅读次数:
46
Description 在美丽的玄武湖畔,鸡鸣寺边,鸡笼山前,有一块富饶而秀美的土地,人们唤作进香河。相传一日,一缕紫气从天而至,只一瞬间便消失在了进香河中。老人们说,这是玄武神灵将天书藏匿在此。 很多年后,人们终于在进香河地区发现了带有玄武密码的文字。更加神奇的是,这份带有玄武密码的文字,与玄武湖 ...
分类:
其他好文 时间:
2020-05-02 18:33:55
阅读次数:
48
The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of inte ...
分类:
其他好文 时间:
2020-05-02 15:11:59
阅读次数:
52
/** * 堆通常是一个可以被看做一棵树的数组对象。 * 堆总是满足下列性质: * \t 堆中某个节点的值总是不大于或不小于其父节点的值; * \t 堆总是一棵完全二叉树。 * 将根节点最大的堆叫做最大堆或大根堆,根节点最小的堆叫做最小堆或小根堆 */public class MaxHeap { p ...
分类:
其他好文 时间:
2020-05-02 10:07:04
阅读次数:
60