从不订购的客户 sql 编程 1. 地址 https://leetcode-cn.com/problems/customers-who-never-order/ 2. 解法 子查询 select Name as Customers from Customers where Id not in ( s ...
分类:
其他好文 时间:
2020-06-14 14:29:06
阅读次数:
76
今日内容概要 如何查询表 """ select where group by having distinct order by limit regexp like ... """ 连表操作理论 今日内容详细 前期表准备 create table emp( id int not null unique ...
分类:
数据库 时间:
2020-06-14 12:46:59
阅读次数:
58
查询select列1,列2,列3from表where条件
分类:
数据库 时间:
2020-06-14 11:10:41
阅读次数:
57
前言 面试题:如果造10w条测试数据,如何在数据库插入10w条数据,数据不重复 最近面试经常会问到sql相关的问题,在数据库中造测试数据是平常工作中经常会用到的场景,一般做压力测试,性能测试也需在数据库中先准备测试数据。那么如何批量生成大量的测试数据呢? 由于平常用python较多,所以想到用pyt ...
分类:
数据库 时间:
2020-06-14 01:12:41
阅读次数:
85
本节重点: 单表查询 语法: 一、单表查询的语法 SELECT 字段1,字段2... FROM 表名 WHERE 条件 GROUP BY field HAVING 筛选 ORDER BY field LIMIT 限制条数 二、关键字的执行优先级(重点) 重点中的重点:关键字的执行优先级 from w ...
分类:
其他好文 时间:
2020-06-13 23:36:19
阅读次数:
95
一直认为PHP的全局变量与C++、Java全局变量类似,直到最近做项目过程中使用的局变量,才发现需要补充学习下这方面的内容。 一 全局变量的global的定义和使用 最初,我的需求是这样的: <?php $name = "why"; function changeName(){ $name = "w ...
分类:
Web程序 时间:
2020-06-13 19:08:39
阅读次数:
75
# Elasticsearch Configuration # # NOTE: Elasticsearch comes with reasonable defaults for most settings. # Before you set out to tweak and tune the con ...
分类:
其他好文 时间:
2020-06-13 16:02:42
阅读次数:
62
package LeetCode_40 /** * 40. Combination Sum II * https://leetcode.com/problems/combination-sum-ii/description/ * * Given a collection of candidate n ...
分类:
其他好文 时间:
2020-06-13 15:59:33
阅读次数:
59
use master go sp_configure 'allow updates',1 go reconfigure with override update sysdatabases set status=32768 where dbid=DB_ID('ypsxyy20160527') dbcc ...
分类:
数据库 时间:
2020-06-13 11:08:45
阅读次数:
76
1.获取2019-2020年每个月份的充值总额 USE xchat; SELECT month(update_time) as month,sum(amount) FROM charge_record WHERE buss_type=0 and charge_status=2 and charge_ ...
分类:
其他好文 时间:
2020-06-12 20:35:33
阅读次数:
119