1.SQL简介 SQL是用于访问和处理数据库的标准的计算机语言 2.SQL是什么 SQL是结构化查询语言,使我们可以访问数据库,是一种ANSI的标准计算机语言 3.SQL做什么 面向数据库执行查询、 从数据库取回数据、 在数据库中插入新的数据、 更新数据库中的数据、 删除数据库中的数据、 创建新的数 ...
分类:
数据库 时间:
2020-05-06 13:40:47
阅读次数:
84
我们在编写一个查询语句的时候 SELECT DISTINCT < select_list > FROM < left_table > < join_type > JOIN < right_table > ON < join_condition > WHERE < where_condition > ...
分类:
数据库 时间:
2020-05-04 01:08:27
阅读次数:
93
说到分组和去重大家率先想到的肯定是group by和distinct, 1.distinct对去重数据是要根据所有要查询的字段去重,不能对查询结果部分去重。 例如: select name ,age ,sex from user where sex = "男"; 要是只根据name和age去重,这里 ...
分类:
数据库 时间:
2020-05-02 20:33:21
阅读次数:
927
The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of inte ...
分类:
其他好文 时间:
2020-05-02 15:11:59
阅读次数:
52
一、 连接数据库 1、连接数据库 mongo 清屏:cls 查看所有数据库列表 show dbs 1、使用数据库、创建数据库 use itying 如果真的想把这个数据库创建成功,那么必须插入一个数据。 数据库中不能直接插入数据,只能往集合(collections)中插入数据。下面命令表示给 ity ...
分类:
数据库 时间:
2020-05-01 14:36:26
阅读次数:
75
The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. ...
分类:
其他好文 时间:
2020-04-30 15:15:38
阅读次数:
44
检索数据
排序检索数据
过滤数据
使用通配符过滤
使用正则表达式进行搜索
创建计算字段
使用数据处理函数
汇总数据
分组数据
使用子查询
联结表
创建高级联结
组合查询
全文本搜索
插入数据
更新和删除数据
创建和操纵表
使用视图
使用存储过程
使用游标
使用触发器... ...
分类:
数据库 时间:
2020-04-28 22:50:10
阅读次数:
85
SQL SQL查询语言概览 SQL数据定义 SQL查询的基本结构 单关系查询 distinct 下面这段语句就能完成一个简单的单关系查询: 而我们有时候的数据单拿一个属性出来,数据是会大量重复的,比如我们执行下列语句: 就会出现大量的重复。 在关系模型的数学定义中,我们不允许关系里有重复的元素。但在 ...
分类:
数据库 时间:
2020-04-28 00:49:17
阅读次数:
80
Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and ino ...
分类:
其他好文 时间:
2020-04-24 13:10:38
阅读次数:
61