上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 24 下一页
摘要: UDP 检验和提供了差错检测的功能。这是基于端到端原则实现的。但是 UDP 的检验和并不提供差错回复的能力。 本文不叙述 UDP 的原理,仅仅着力介绍一下检验和的实现原理。 1. 原理 对发送方的 UDP 报文段的所有 16 比特字的和进行反码运算,当求和遇见溢出的时候,进行回卷(回卷的补充在下面) 阅读全文
posted @ 2020-06-02 01:32 neozheng 阅读(4064) 评论(0) 推荐(0) 编辑
摘要: set autocommit=0指事务非自动提交,自此句执行以后,每个SQL语句或者语句块所在的事务都需要显示"commit"才能提交事务。 1、不管autocommit 是1还是0 START TRANSACTION 后,只有当commit数据才会生效,ROLLBACK后就会回滚。 2、当auto 阅读全文
posted @ 2020-05-30 14:40 neozheng 阅读(681) 评论(0) 推荐(0) 编辑
摘要: In this blog, we will see the very basic thing “I” of “ACID” and an important property of Transaction ie., “ISOLATION” The isolation defines the way i 阅读全文
posted @ 2020-05-28 21:35 neozheng 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 前言:mysql在我们的开发中基本每天都要面对的,作为开发中的数据的来源,mysql承担者存储数据和读写数据的职责。因为学习和了解mysql是至关重要的,那么当我们在客户端发起一个sql到出现详细的查询数据,这其中究竟经历了什么样的过程?mysql服务端是如何处理请求的,又是如何执行sql语句的?本 阅读全文
posted @ 2020-05-26 00:58 neozheng 阅读(1263) 评论(2) 推荐(0) 编辑
摘要: 关于or、or null、count的介绍 or是短路逻辑或运算,当左边为true时,则不再继续运算右边,当左边为false时才继续运算右边;在mysql内部中true、false用1、0表示;exp or null先计算exp如果为true则直接返回true(1),否则继续运算右边,而右边是nul 阅读全文
posted @ 2020-05-23 00:14 neozheng 阅读(1570) 评论(0) 推荐(0) 编辑
摘要: STRAIGHT_JOIN,在数据量大的联表查询中灵活运用的话,能大大缩短查询时间。 首先来解释下STRAIGHT_JOIN到底是用做什么的: -- STRAIGHT_JOIN is similar to JOIN, except that the left table is always read 阅读全文
posted @ 2020-05-19 10:40 neozheng 阅读(560) 评论(0) 推荐(0) 编辑
摘要: Postgresql常用命令 连接数据库: NEO:~ zhenxink$ psql postgres 用指定的用户名登陆指定的数据库: MacBook-Pro:~ zhenxink$ psql -U testdbuser -W testdb Password for user testdbuser 阅读全文
posted @ 2020-05-08 01:19 neozheng 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Flask 用的是 CBV, 原先的用户认证用的是自己写的一个 auth 的装饰器, 后面改成了在 before_request 中进行用户认证,而且应前端的要求, 当用户登陆认证失败后的 STATUS 要改为 401 (原先是用默认的 200)。当有了这两个改动后, 发现原先已写好的代码又出现了跨 阅读全文
posted @ 2020-04-11 19:36 neozheng 阅读(591) 评论(0) 推荐(0) 编辑
摘要: Class metaprogramming is the art of creating or customizing classes at runtime. Classes are first-class objects in Python, so a function can be used t 阅读全文
posted @ 2020-04-06 00:07 neozheng 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Descriptors are a way of resuing the same access logic in multiple attributes. For example, field types in ORM such as the DjangoORM and SQL Alchemy a 阅读全文
posted @ 2020-04-02 00:52 neozheng 阅读(115) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 24 下一页