当前位置:网站首页>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 .
边栏推荐
- Transformer variants (spark transformer, longformer, switch transformer)
- selenium使用———xpath和模拟输入和模拟点击协作
- 如何从远程访问 DMS数据库?IP地址是啥?用户名是啥?
- [untitled]
- Fiddler抓包APP
- [GCN multimodal RS] pre training representations of multi modal multi query e-commerce search KDD 2022
- 氢能创业大赛 | 国家能源局科技司副司长刘亚芳:构建高质量创新体系是我国氢能产业发展的核心
- 【AI4Code】《Unified Pre-training for Program Understanding and Generation》 NAACL 2021
- [micro service ~sentinel] sentinel degradation, current limiting, fusing
- 【AI4Code】CodeX:《Evaluating Large Language Models Trained on Code》(OpenAI)
猜你喜欢

Web programming (II) CGI related

Intelligent information retrieval (overview of intelligent information retrieval)

Feign使用

Solutions to the failure of winddowns planning task execution bat to execute PHP files

【RS采样】A Gain-Tuning Dynamic Negative Sampler for Recommendation (WWW 2022)

Transformer变体(Routing Transformer,Linformer,Big Bird)

NLP知识----pytorch,反向传播,预测型任务的一些小碎块笔记

After having a meal with trump, I wrote this article

【6篇文章串讲ScalableGNN】围绕WWW 2022 best paper《PaSca》

Those young people who left Netease
随机推荐
【Debias】Model-Agnostic Counterfactual Reasoning for Eliminating Popularity Bias in RS(KDD‘21)
Web programming (II) CGI related
Analysis of TCP packet capturing using Wireshark
【多模态】《HiT: Hierarchical Transformer with Momentum Contrast for Video-Text Retrieval》ICCV 2021
selenium使用———xpath和模拟输入和模拟点击协作
Atomic atomic class
氢能创业大赛 | 国家能源局科技司副司长刘亚芳:构建高质量创新体系是我国氢能产业发展的核心
Word中的空白页,怎么也删不掉?如何操作?
Transformer变体(Routing Transformer,Linformer,Big Bird)
RestTemplate与Ribbon简单使用
[comparative learning] understanding the behavior of contractual loss (CVPR '21)
Brpc source code analysis (V) -- detailed explanation of basic resource pool
Plus版SBOM:流水线物料清单PBOM
Zero shot image retrieval (zero sample cross modal retrieval)
搭建Vision Transformer系列实践,终于见面了,Timm库!
Figure neural network for recommending system problems (imp-gcn, lr-gcn)
[high concurrency] I summarized the best learning route of concurrent programming with 10 diagrams!! (recommended Collection)
PHP curl post x-www-form-urlencoded
NLP knowledge - pytorch, back propagation, some small pieces of notes for predictive tasks
Pairwise comparison of whether the mean values between R language groups are the same: pairwise hypothesis test of the mean values of multiple grouped data is performed using pairwise.t.test function