DML:数据操作语言 DML用于查询与修改数据记录,包括以下SQL语句: *INSERT:添加数据到数据库中 *UPDATE:修改数据库中的数据 *DELETE:删除数据库中的数据 *SELECT:选择(查询)数据 >SELECT 是SQL语言的基础,最为重要 例子:查询一个表的信息 SELECT ...
分类:
数据库 时间:
2021-04-22 15:23:24
阅读次数:
0
1.记录索引交换 class Solution { public: int minSwapsCouples(vector<int>& row) { int len=row.size(); vector<int> idx(len,-1); int ret=0; for(int i=0;i<len;++ ...
分类:
其他好文 时间:
2021-04-22 15:12:46
阅读次数:
0
PostgreSQL 9.6安装 1、添加RPM sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm 2、安 ...
分类:
数据库 时间:
2021-04-21 12:51:42
阅读次数:
0
总的来说,replace into 跟 insert into 功能类似 不同点在于:replace into 首先尝试插入数据到表中 1. 如果发现表中已经有此行数据(根据主键或者唯一索引判断)则先删除此行数据,然后插入新的数据。 2. 否则,直接插入新数据。 要注意的是:插入数据的表必须有主键或 ...
分类:
其他好文 时间:
2021-04-21 12:34:55
阅读次数:
0
堆排序 public class HeapSort { public static void main(String[] args) { int[] arr = {1, 3, 519, 2, 10, 8, 0, 998}; heapSort(arr); System.out.println(Arra ...
分类:
编程语言 时间:
2021-04-21 12:26:45
阅读次数:
0
4.19Java.util.Arrays类 JDK提供的工具类 Arrays类包含的内容 排序 查找 填充 打印内容 ... 打印内容 package com.array;?import java.util.Arrays;?/** * 测试Java.util.Arrays工具类的使用 * @auth ...
分类:
编程语言 时间:
2021-04-21 12:15:14
阅读次数:
0
很多时候我们在添加完产品习惯性的会刷新索引(Reindex),但是一些不正确的操作会引起刷新索引,比如报错“There was a problem with reindexing process.” “Cannot initialize the indexer process.” 通常引起这个错误可 ...
分类:
其他好文 时间:
2021-04-21 12:06:23
阅读次数:
0
快速查看ES集群状态 GET _cluster/health { "cluster_name": "elasticsearch", "status": "yellow", "timed_out": false, "number_of_nodes": 1, "number_of_data_nodes" ...
分类:
其他好文 时间:
2021-04-20 14:54:42
阅读次数:
0
索引优化 1.1SQL性能下降的原因 查询语句写的很不好; 索引失效 单值索引 select * from user where name=''; create index idx_user_name on user(name); 复合索引 select * from user where name ...
分类:
其他好文 时间:
2021-04-20 14:31:28
阅读次数:
0
-- 查看创建数据库语句 SHOW CREATE DATABASE 数据库名 -- 查看创建表语句 SHOW CREATE TABLE 表名 -- 查看表结构 DESC 表名 MYISAM INNODB 事务支持 不支持 支持 数据行锁定 不支持 支持 外键 不支持 支持 全文索引 支持 不支持 表 ...
分类:
数据库 时间:
2021-04-20 14:02:45
阅读次数:
0