上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 107 下一页
摘要: 转自:https://blog.shipengx.com/archives/4094be86.html,讲的非常全面 1.std::shared_ptr::get element_type* get() const noexcept; 获取指针,存储的指针指向 shared_ptr 对象解引用的对象 阅读全文
posted @ 2022-11-19 19:32 lypbendlf 阅读(6672) 评论(1) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/shift_wwx/article/details/78742459 1.命名空间 using namespace std;//最常见的用法 2.在子类中引入基类的成员 当private继承时,可以通过using 基类:变量/函数名,让子类访问。这种 阅读全文
posted @ 2022-11-19 19:11 lypbendlf 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 转自:https://juejin.cn/post/7043596855829069861 1.更新 对表做多行更新的时候通常会遇到以下两种情况: 单语句批量更新(update a=a+1 where pk > 500) 多语句批量更新(update a=1 where pk=1;update a= 阅读全文
posted @ 2022-11-19 01:12 lypbendlf 阅读(825) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/myseries/p/11191134.html 1.批量insert 1.1 一条sql 将单条insert改为批量insert,其实个人认为改为replace into更好,批量insert时,如果其中一条主键重复了,那么就会报错后面的ins 阅读全文
posted @ 2022-11-19 00:54 lypbendlf 阅读(628) 评论(0) 推荐(0) 编辑
摘要: 转自:https://stackoverflow.com/questions/28595117/why-can-we-use-stdmove-on-a-const-object 1.右值 int a = 10; 左值是有固定的内存地址,&a即左值的地址,我们可以把&a保存起来,后续通过&a这个地址读 阅读全文
posted @ 2022-11-17 21:54 lypbendlf 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.runoob.com/docker/docker-command-manual.html 1.创建一个新的容器 # 使用docker镜像nginx:latest以后台模式启动一个容器,并将容器命名为mynginx。 docker run --name mynginx - 阅读全文
posted @ 2022-11-17 21:28 lypbendlf 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.runoob.com/design-pattern/proxy-pattern.html 1.例子 接口: 实体类: 代理类: 其数据成员包含了一个被代理的类对象。 通过代理类来实现对原类的访问,可以实现缓存。 2.作用 https://refactoringguru. 阅读全文
posted @ 2022-11-06 00:55 lypbendlf 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/rainman/archive/2013/05/01/3053703.html 1.例子 按照group by后的字段分组,相同的为一组,一般是计算数量。 select 类别, sum(数量) as 数量之和 from A group by 类别 阅读全文
posted @ 2022-11-06 00:19 lypbendlf 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/greatverve/archive/2012/09/12/const-iterator.html 1.介绍 如果传递过来一个const类型的容器,那么只能用const_iterator来遍历。 void Method(const vector< 阅读全文
posted @ 2022-11-05 21:53 lypbendlf 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.zhihu.com/question/28557115,https://www.ruanyifeng.com/blog/2011/09/restful.html 1.总结 看Url就知道要什么 看http method就知道干什么(客户端通过四个HTTP动词,对服务器端 阅读全文
posted @ 2022-11-05 20:50 lypbendlf 阅读(19) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 107 下一页