当前位置:网站首页>SQL getting started plan-1-select
SQL getting started plan-1-select
2022-07-01 19:48:00 【Southern Chu Lich】
So let's start here , Will learn how to master Leetcode Medium SQL subject , There are two versions of each topic, the original and the variant , Consolidate learning , Improve my ability in practice .
1 choice
The original version :

therefore , The answer to this question should be as follows :
First step :
New database 
The second step ,
Create data table :
CREATE TABLE world(
name INT NOT NULL AUTO_INCREMENT,
continent VARCHAR(100) ,
area INT NOT NULL ,
population INT NOT NULL ,
gdp INT NOT NULL ,
PRIMARY KEY (name)
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
ad locum ,SQL Middle primary key name The value type of is inconsistent with the real value type .
Insert relevant data

INSERT INTO world
(name, continent, area, population, gdp)
VALUES
(1, "a", 3000000,25000000,10);
INSERT INTO world
(name, continent, area, population, gdp)
VALUES
(2, "a", 1000000,15000000,10);
INSERT INTO world
(name, continent, area, population, gdp)
VALUES
(3, "a", 4000000,45000000,10);
INSERT INTO world
(name, continent, area, population, gdp)
VALUES
(4, "a", 5000000,65000000,10);
INSERT INTO world
(name, continent, area, population, gdp)
VALUES
(5, "a", 1000000,5000000,10);
INSERT INTO world
(name, continent, area, population, gdp)
VALUES
(6, "a", 1000000,25000000,10);
INSERT INTO world
(name, continent, area, population, gdp)
VALUES
(7, "a", 13000000,14000000,10);
Write a query SQL The sentence of , Get feedback .
Query results
This question is suitable for , Query two fields larger than / Less than / A table equal to a certain value .
For example, I can create a table , Query the situation that a value in the table is too large .
边栏推荐
- Define dichotomy lookup
- 产品模块化设计的前世今生
- 为定时器和延时器等其它情况的回调函数绑定当前作用域的this
- Use the uni app demo provided by Huanxin to quickly realize one-on-one chat
- qobject_cast用法
- Salesmartly has some tricks for Facebook chat!
- 解决VSCode下载慢或下载失败的问题
- Wechat applet navigator has a shadow after clicking. Remove the shadow effect of navigator
- [research materials] iResearch tide Watching: seven major trends in the clothing industry - Download attached
- list分割成满足和不满足条件的集合(partitioningBy)
猜你喜欢
随机推荐
DS transunet: Dual Swing transformer u-net for medical image segmentation
PowerDesigner设计Name和Comment 替换
2022/5/23-2022/5/30
MySQL reports an error can't create table 'demo01 tb_ Student‘ (errno: 150)*
Review the collection container again
Procédure de mesure du capteur d'accord vibrant par le module d'acquisition d'accord vibrant
list大集合等比分割成多个小list集合
博途V16 获取系统时间转换成字符串
【AI服务器搭建】CUDA环境
SIP protocol of gb28181
AAAI2020: Real-time Scene Text Detection with Differentiable Binarization
新增订单如何防止重复提交
全国职业院校技能大赛网络安全“splunk“详细配置
DDR4 test-2
New window open page -window open
JS 之 常用内置类的使用
一文读懂C语言中的结构体
Oracle physical architecture
Wireshark packet analysis TCP, FTP
Unreal Engine packaging project









![[Mori city] random talk on GIS data (I)](/img/4d/1ed4bbf397b8d756c91241705528de.jpg)