当前位置:网站首页>MySQL exercise 2
MySQL exercise 2
2022-07-25 12:16:00 【Gremmie102】


insert into goods values(
' Schoolbag ',
18.91,
101,
NULL
);



insert into book values(
'Java The core technology ',
'Cay S. Horstman',
56.43,
' Computer technology '
);


CD The question is actually asking, and the second character is A Which is the most important , Strictly speaking, only C Yes , But the question plane does not explain the verification rules . In general , The default verification rule is utf8_general_ci. In this situation ,D Also on the .

First , Let's create a system composed of 100 A table of records

delimiter //
drop procedure if exists test; # If there is test Stored procedures are deleted
create procedure test() # Create a parameterless stored procedure , The name is test
begin
declare i int; # Declare variables
set i = 1;
while i <= 100 do # Conditions for ending the cycle : When i Greater than 100 Jump out of the loop
INSERT INTO test values(i);
set i = i + 1; # Cycle time ,i Add 1
end while; # end while loop
select * from test; # see test Table data
END
// # End definition statement
CALL test(); # End definition statement
DELIMITER ; # Reset the separator to ;
It turns out that :1-50,70
The logic required is :[1,50] or ((25 or 70 or 95) And [25,75]), Only 25 and 70 Satisfy , The options are not , The first half 1~50 All satisfied with , Only A Option 30 In this range , It would be A 了 .


update goods set price = price+50 where inventory > 30;



.
delete from goods where price>60 or inventory<200;




select name,age from student where name =' Zhang %' and age between 18 and 25;

select * from article where create_date between '2019-01-01 10:30:00' and '2019-11-10 16:02:00';

select * from article where title is null or create_date > '2019-01-01 00:00:00';

select * from book where author is not null or (price >50 and publish_date>'2019-01-01 00:00:00');

select * from user where (ID between 1 and 200 or between 300 and 500)
and account IS NOT NULL OR amount>1000;
Conditions 1 Two between…and… Yes or relationship , Follow “accout Column is not empty ” This condition is and related . Conditions 1 And conditions 2 Yes or relationship .
边栏推荐
- 给生活加点惊喜,做创意生活的原型设计师丨编程挑战赛 x 选手分享
- 搭建Vision Transformer系列实践,终于见面了,Timm库!
- Zuul网关使用
- R语言使用wilcox.test函数执行wilcox符号秩检验获取总体中位数(median)的置信区间(默认输出结果包括95%置信水平的置信区间)
- Video caption (cross modal video summary / subtitle generation)
- dirReader. Readentries compatibility issues. Exception error domexception
- PHP one server sends pictures to another. Curl post file_ get_ Contents save pictures
- monit安装和使用
- 嵌套事务 UnexpectedRollbackException 分析与事务传播策略
- 通信总线协议一 :UART
猜你喜欢

3.2.1 什么是机器学习?
![[multimodal] transferrec: learning transferable recommendation from texture of modality feedback arXiv '22](/img/02/5f24b4af44f2f9933ce0f031d69a19.png)
[multimodal] transferrec: learning transferable recommendation from texture of modality feedback arXiv '22
![[RS sampling] a gain tuning dynamic negative sampler for recommendation (WWW 2022)](/img/23/0901da44160ca685d2c694ae9a834b.png)
[RS sampling] a gain tuning dynamic negative sampler for recommendation (WWW 2022)

GPT plus money (OpenAI CLIP,DALL-E)

Pycharm connects to the remote server SSH -u reports an error: no such file or directory

Meta learning (meta learning and small sample learning)

Knowledge maps are used to recommend system problems (mvin, Ctrl, ckan, Kred, gaeat)

Brpc source code analysis (V) -- detailed explanation of basic resource pool

Hystrix使用

Transformer变体(Routing Transformer,Linformer,Big Bird)
随机推荐
【GCN多模态RS】《Pre-training Representations of Multi-modal Multi-query E-commerce Search》 KDD 2022
Ups and downs of Apple's supply chain in the past decade: foreign head teachers and their Chinese students
flink sql client 连接mysql报错异常,如何解决?
Web programming (II) CGI related
【AI4Code】CodeX:《Evaluating Large Language Models Trained on Code》(OpenAI)
[comparative learning] understanding the behavior of contractual loss (CVPR '21)
[GCN multimodal RS] pre training representations of multi modal multi query e-commerce search KDD 2022
容错机制记录
【AI4Code最终章】AlphaCode:《Competition-Level Code Generation with AlphaCode》(DeepMind)
Brpc source code analysis (IV) -- bthread mechanism
【AI4Code】《Pythia: AI-assisted Code Completion System》(KDD 2019)
那些离开网易的年轻人
Application of comparative learning (lcgnn, videomoco, graphcl, XMC GaN)
[dark horse morning post] eBay announced its shutdown after 23 years of operation; Wei Lai throws an olive branch to Volkswagen CEO; Huawei's talented youth once gave up their annual salary of 3.6 mil
numpy初识
From cloud native to intelligent, in-depth interpretation of the industry's first "best practice map of live video technology"
【图攻防】《Backdoor Attacks to Graph Neural Networks 》(SACMAT‘21)
Meta learning (meta learning and small sample learning)
Median (two point answer + two point search)
Solutions to the failure of winddowns planning task execution bat to execute PHP files