5 月 05 2024 By 云博小周宇 MongoDB 分片的原理、搭建、应用 ! 数据库 一、概念: 分片(sharding)是指将数据库拆分,将其分散在不同的机器上的过程。将数据分散到不同的机器上,不需要功能强大的服务器就可以… Read More
5 月 05 2024 By 云博小周宇 [LeetCode] 610. Triangle Judgement_Easy tag: SQL 数据库 A pupil Tim gets homework to identify whether three line segments could possibly form a triangle. &n… Read More
5 月 05 2024 By 云博小周宇 MongoDB 分片的原理、搭建、应用 数据库 一、概念: 分片(sharding)是指将数据库拆分,将其分散在不同的机器上的过程。将数据分散到不同的机器上,不需要功能强大的服务器就可以… Read More
5 月 05 2024 By 云博小周宇 [LeetCode] 613. Shortest Distance in a Line_Easy tag: SQL 数据库 Table point holds the x coordinate of some points on x-axis in a plane, which are all inte… Read More
5 月 05 2024 By 云博小周宇 [LeetCode] 584. Find Customer Referee_Easy tag: SQL 数据库 Given a table customer holding customers information and the referee. +------+------+-----… Read More
5 月 05 2024 By 云博小周宇 PHP操作Redis(一) PHP连接Redis,含Redis密码验证、指定某一Redis数据库 数据库 台服务器上都快开启200个redis实例了,看着就崩溃了。这么做无非就是想让不同类型的数据属于不同的应用程序而彼此分开。 那么,redis有没有什么方法使不同的应用程序数据彼此分开同时又存储在相同的实… Read More
5 月 05 2024 By 云博小周宇 MongoDB 数据库管理(不定时更新) 数据库 之前的几篇文章大致说了副本集的搭建、副本集的管理,现在说下MongoDB数据库的管理。数据库管理包括:备份、还原、导入、导出、服务器管理等。 一:查看服务器状态,查看命令行参数。db.serverSt… Read More
5 月 05 2024 By 云博小周宇 [LeetCode] 619. Biggest Single Number_Easy tag: SQL 数据库 Table number contains many numbers in column num including duplicated ones.Can y… Read More
5 月 05 2024 By 云博小周宇 pymysql使用(二) 数据库 import pymysql db = pymysql.connect("localhost","root","","hank") #打开数据库 (如果连接失败会报错) cursor = db.cur… Read More
5 月 05 2024 By 云博小周宇 SqlServer 取表某一列相同ID最大时的数据 数据库 SELECT * FROM(SELECT *,ROW_NUMBER() OVER(PARTITION BY UserName ORDER BY Id DESC) Num FROM dbo.[User]… Read More
5 月 05 2024 By 云博小周宇 解决mongodb查询慢的问题 数据库 最近项目上一直在用mongodb作为数据库,mongodb有他的优势,文档型类json格式存储数据,修改起来比传统的关系型数据库更方便,但是最近在用mongodb出现了查询… Read More
5 月 05 2024 By 云博小周宇 mongodb入门-关系型RDMS数据库对比及适用场景 数据库 引言 最近工作接触到了mongodb数据库,记录下个人对其的理解和使用情况。虽然mongodb 出来的时间已经不短,但是相对mysql mssql oracle 这样传统的关系型数据库来… Read More
5 月 05 2024 By 云博小周宇 MongoDB中的一些坑(最好不要用) 数据库 MongoDB 是目前炙手可热的 NoSQL 文档型数据库,它提供的一些特性很棒:如自动 failover 机制,自动 sharding,无模式 schemaless,大部分情况下性能也很棒。但是薄荷… Read More
5 月 05 2024 By 云博小周宇 SQL注入绕过技巧 数据库 常用的绕过技巧 1)双写 2)编码 3)大小写混写 4)函数代替 5)注释 具体场景绕过 下面记录一些具体检测场景的绕过 0x00 过滤了空格 空格在SQL语句中是起到分隔符… Read More
5 月 05 2024 By 云博小周宇 DB2——sum over partition by 的用法 数据库 参考的博文出处:http://www.cnblogs.com/luhe/p/4155612.html,对博文进行了修改新增,修改了错误的地方 之前用过row_number(),rank()等排序与ov… Read More
5 月 05 2024 By 云博小周宇 Sql_server基本操作 数据库 使用Sql_server创建表,视图,触发器,存储过程,函数等基本操作。 create table test1( /* 创建一个表 */ num int ) alter table te… Read More
5 月 05 2024 By 云博小周宇 MYSQL的简单脚本起停 数据库 对于多instance安装的MYSQL来说,起停的过程相对复杂,可以定义一些简单的脚本来简化日常的管理。 1# 环境变量脚本 [mysql@mysql01 scripts]$ cat mysql_en… Read More
5 月 05 2024 By 云博小周宇 Oracle Database-PL/SQL 数据库 Oracle Database-PL/SQL PL/SQL基础 PL/SQL(Procedure Language/SQL) PL/SQL是Orac… Read More
5 月 05 2024 By 云博小周宇 Oracle Database-数据处理和表的管理部分 数据库 Oracle Database-数据处理和表的管理部分 *SQL的类型 DML(Data Manipulation Language 数据操作语言):select/insert/update/dele… Read More
5 月 05 2024 By 云博小周宇 MySQL 分支和循环结构 数据库 1、if else分支 1 create procedure pd_testif2(in num int,out str varchar) 2 begin 3 if num=1 then 4 set … Read More