From d587fea672aa0f2bbfeb0aaa5ebd2fdae8fe401f Mon Sep 17 00:00:00 2001 From: pcrze68gk <3241302382@qq.com> Date: Thu, 18 Apr 2024 10:22:32 +0800 Subject: [PATCH] =?UTF-8?q?Add=20=E5=AE=9E=E9=AA=8C7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 实验7 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 实验7 diff --git a/实验7 b/实验7 new file mode 100644 index 0000000..2d7fbdf --- /dev/null +++ b/实验7 @@ -0,0 +1,24 @@ +#实验7 +#1. +select * from bmxx; + +#2. +select now(); + +#3. +select * from spxx where Sslb='文具' and Jg>=80 and Jg<=100; + +#4. +select * from spxx where Sslb='电器' and (Jg<=100 or Jg>=200); + +#5. +select * from ygxx where Name like '刘%' and ssbmbh != '1001'; + +#6. +select * from ygxx where Name like '张%' and Sfzh is not null; + +#7. +select Sslb,sum(sl) from spxx group by Sslb having sum(sl)>12; + +#8 +select Spmc,Jg,sl from spxx where Sslb='文具' order by Jg DESC LIMIT 3; \ No newline at end of file