码迷,mamicode.com
首页 >  
搜索关键字:insert or update    ( 28063个结果
行转列例子
create table test.t_20210429 ( app String, cnt Nullable(UInt32), per Nullable(UInt32) ) ENGINE=MergeTree() order by app; insert into test.t_20210429 v ...
分类:其他好文   时间:2021-04-30 12:18:08    阅读次数:0
一文读懂C++ String类在算法竞赛中的常见用法
一文读懂C++ String类在算法竞赛中的常见用法 string 相较于C语言的字符数组可方便太多了,在算法竞赛中能大大节省我们的时间。以下是我在刷题中会使用到的常见String用法。注释都写好了。 #include <iostream> #include <string> using names ...
分类:编程语言   时间:2021-04-30 12:14:45    阅读次数:0
libmaxminddb安装
https://github.com/maxmind/libmaxminddb ubuntu sudo add-apt-repository ppa:maxmind/ppa sudo apt update sudo apt install libmaxminddb0 libmaxminddb-dev ...
分类:数据库   时间:2021-04-30 11:55:10    阅读次数:0
pyspark reduceByKey、groupByKey、groupBy、keyBy、subtractByKey 使用
reduceByKey、groupByKey rdd=sc. parallelize([("one",1),("two",1),("one",1),("one1",1)]) rdd. reduceByKey(lambda x,y:x). count() rdd1=sc. parallelize([( ...
分类:其他好文   时间:2021-04-29 12:20:10    阅读次数:0
Oracle 中用 update 语句更新timestamp字段的格式
我使用的Oracle的图形工具是PL/SQL,在数据库中数据表格中手动创建一条记录时,表字段有一个timestamp(6)类型的字段,直接将其他记录的时间内容粘贴过来,保存表时报错:无效的月份。 经过查阅资料,才使用语句: UPDATE table set 字段名= to_timestamp('20 ...
分类:数据库   时间:2021-04-29 11:50:25    阅读次数:0
List根据指定字段进行分组C#
var sql = @"update [TABLE] WITH (ROWLOCK) SET 匹配方式 = '{0}' where ID in({1})"; //lissqls 是你要分组的泛型集合 var GroupList = lissqls.GroupBy(x => x.MatchType).S ...
分类:Windows程序   时间:2021-04-28 12:20:20    阅读次数:0
Mybatis批量插入写法
<insert id="insertBatchList"> INSERT INTO tag ( `tag_name`, `tag_weight`, ) VALUES <foreach collection ="list" item="tag" separator =","> (#{tag.tagNa ...
分类:其他好文   时间:2021-04-28 12:04:54    阅读次数:0
arp欺骗
工具 kali linux下的arpspoof,VMware以及USB式的无线网卡 遇见问题 1、kali2020未装arpsproof。 首先执行sudo apt-get update,然后apt-get install arpsproof 2、无法ping到受害主机 3、注意使用管理员权限进行操 ...
分类:其他好文   时间:2021-04-27 15:23:07    阅读次数:0
电商 Python 访客Excel合并2
import pandas as pd import os import re path = "./files/" files = os.listdir(path) # 用于存放Excel,里面的每个元素类型为:pandas.core.frame.DataFrame list_excel = [] ...
分类:编程语言   时间:2021-04-27 14:43:38    阅读次数:0
TX2(ubuntu18.04)更换国内源
TX2芯片为arm架构,因此在该架构下,ubuntu18.04系统需要更换arm架构的源。 # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic m ...
分类:系统相关   时间:2021-04-27 14:42:17    阅读次数:0
28063条   上一页 1 ... 14 15 16 17 18 ... 2807 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!