检查文件是否存在、可读等等 File file = new File("out.txt") println file.exists() println file.canRead() 向文件写入文本 File file = new File("out.txt") file.write "First l ...
分类:
其他好文 时间:
2021-02-24 13:10:56
阅读次数:
0
insert into table ads_new_mid_count select '2020-03-12', count(*) from dwt_uv_topic where login_date_first='2020-03-12' group by login_date_first; ...
分类:
其他好文 时间:
2021-02-24 13:05:56
阅读次数:
0
\(\text{Problem}:\)题目链接 \(\text{Solution}:\) 记一个状态为有序三元组 \((x,y,z)\)。 当 \(x<y<z\) 时,考虑先手一步必胜的情况:当 \(z-y=y-x\) 且后手上一步选了 \(z\) 时,先手给定 \(z-y\) 这个数。 当 \(x ...
分类:
其他好文 时间:
2021-02-24 13:02:04
阅读次数:
0
主要是这两个sql start_log(利用get_json_object函数): insert overwrite table "$app".dwd_start_log PARTITION (dt='$do_date') select get_json_object(line,'$.mid') m ...
分类:
数据库 时间:
2021-02-23 14:36:54
阅读次数:
0
冗余路径 \(\href{https://www.acwing.com/solution/content/20697/}{边连通分量}\) \(本题是等价于加入最少边是整个图变成边连通分量(没有桥)\) #include <bits/stdc++.h> using namespace std; #d ...
分类:
其他好文 时间:
2021-02-22 12:51:09
阅读次数:
0
1.DOM查询 - 通过具体的元素节点来查询 - 元素.getElementsByTagName() - 通过标签名查询当前元素的指定后代元素 - 元素.childNodes - 获取当前元素的所有子节点 - 会获取到空白的文本子节点 - 元素.children - 获取当前元素的所有子元素 - 元 ...
分类:
其他好文 时间:
2021-02-22 12:35:51
阅读次数:
0
1、on duplicate key 场景: a、copy代码 b、原代码中insert唯一键冲突失败后需要进行update操作,此时正常 c、copy后的场景中有部分字段是不需要覆盖的,会导致将有值的覆盖成null 坑级:????? 由于代码路径在xml,非常难检测到。并且on duplicate ...
分类:
其他好文 时间:
2021-02-20 12:42:50
阅读次数:
0
批量插入 xml如下: <insert id ="batchInsert" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id"> insert into t_person(name, age, height, ...
分类:
其他好文 时间:
2021-02-20 12:17:17
阅读次数:
0
//出发器 ALTER trigger [dbo].[trsx] on [dbo].[T1] for insert as BEGIN DECLARE @URL VARCHAR(1000) set @URL='http://192.168.1.xx/api/blade-meal/meal/menu/g ...
分类:
数据库 时间:
2021-02-20 12:17:00
阅读次数:
0
1 class MyLinkedList<E> { 2 3 int size = 0;//集合元素的个数 4 5 Node<E> first;//指向第一个元素 6 Node<E> last;//指向最后一个元素 7 8 //元素 9 private static class Node<E> { 1 ...
分类:
其他好文 时间:
2021-02-20 11:54:33
阅读次数:
0