通过sql一步处理 insert into table_name(column1,column2,column3) select 'value1','value2','value3'where not exists(select column from table_name where id=1); ...
分类:
数据库 时间:
2019-12-05 19:03:48
阅读次数:
293
在C++中,类的静态成员(static member)必须在类内声明,在类外初始化,像下面这样 class A class A { private: static int count ; // 类内声明 }; int A::count = 0 ; // 类外初始化,不必再加static关键字 { p ...
分类:
其他好文 时间:
2019-12-05 01:11:59
阅读次数:
110
redis(remote-dictionary-system)即远程字典服务器,是NoSQL数据库: 适合做缓存以及持久化; 免费开源,高性能的分布式内存数据库; redis的安装和使用: 下载Redis-x64-3.2.100.zip,然后解压即可; 双击redis-server.exe即可启动r ...
分类:
其他好文 时间:
2019-12-03 20:06:04
阅读次数:
73
The system of Martians' blood relations is confusing enough. Actually, Martians bud when they want and where they want. They gather together in differ ...
分类:
其他好文 时间:
2019-11-30 09:36:21
阅读次数:
67
一、C++对象模型 在C++的对象模型中,nonstatic data members被放在每个class object之中,static data members仅存在一份实例,被单独放置在class ojbect之外,static 和 nonstatic function members 也仅存 ...
分类:
编程语言 时间:
2019-11-28 21:08:35
阅读次数:
80
?Geo类型 Redis3.2.0版本推出 可以将用户给定的地理位置信息存储起来,并对这些信息进行操作 ~~~shell GEOADD key longitude latitude member [longitude latitude member ...] //在使用排序集表示的地理空间索引中添加 ...
分类:
其他好文 时间:
2019-11-26 22:46:07
阅读次数:
80
一、request提供了一个一个叫做session的类,来实现客户端和服务端的会话保持 coding:utf 8 import requests url = "https://passport.cnblogs.com/user/signin" headers = { 头部信息已省略 } payloa ...
分类:
其他好文 时间:
2019-11-25 20:41:47
阅读次数:
83
[toc] Redis 3.2版本新增GEO(地理位置)。 GEO指令 GEOADD 命令: GEOADD key longitude latitude member [longitude latitude member ...] 命令描述:将指定的地理空间位置(纬度、经度、名称)添加到指定的 中。 ...
分类:
其他好文 时间:
2019-11-24 10:04:23
阅读次数:
59
新生代收集器 Serial New 单线程收集器,工作时必须暂停其他线程; 简单高效,没有线程交互开销; 基于复制算法; Parallel New 对Serial的改进,多线程; CPU数量 ...
分类:
其他好文 时间:
2019-11-21 17:13:20
阅读次数:
64
//修改某个字段类型 ALTER TABLE member MODIFY COLUMN cpn_type TINYINT COMMENT '优惠券类型 1=现金券 2=满减券 3=加油券'; //在某个字段之后 新加字段 ALTER TABLE member ADD cpn_bn_handwork ...
分类:
数据库 时间:
2019-11-21 12:14:53
阅读次数:
71