【MySQL】表的增删查改(CRUD)(下)

个人主页:♡喜欢做梦

欢迎  👍点赞  ➕关注  ❤️收藏  💬评论


本篇是继上篇的下篇,如果上篇没有看过小伙伴,可以先看看我的上一篇再来看一下这一篇【MySQL】表的增删查改(CRUD)(上) 

💥条件查询(where)

概念: 

条件查询:允许用户在查询语句中指定筛选条件,数据库中会根据这些条件从表中筛选出符合条件的数据,将满足条件的记录返回给用户,不满足的条件的排出在外。

  • 进行条件查询需要用到where,否则在没有写where的情况下,写运算符会发生报错。

运算符 

比较运算符:

运算符说明
>,>=,<,<=大于,大于等于,小于,小于等于
=等于,null不安全,例如null=null,结果为null
<=>等于,null安全,例如null=null,结果为true(1)
!=,<>不等于

between a and b

匹配范围,[a0,a1],如果a0<=value<=a1,则返回true(1)

in(option1,option2....)如果是in中任意一个option,则返回true(1)
is null如果是null,则返回true(1)
is not null如果不是null,则返回true(1)
like

模糊匹配,%表示任意多个(包括0个)任意字符;

_表示任意一个字符

  •  这里的等于就是=,而不是==;

逻辑运算符

运算符说明
and多个条件必须都为true(1),结果才为true(1)
or任意一个条件为true(1),结果才为true(1)
not条件为true(1),结果为false(0)
  • and类似于&&;
  • or类似于||;
  • not类似于!; 
  • 逻辑运算符具有优先级,建议用括号制定。

示例:

表中数据:

mysql> select * from exam;
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    1 | 张三   |    67.0 | 80.0 |    88.0 |
|    2 | 李四   |    87.0 | 55.0 |    66.0 |
|    3 | 小五   |    91.0 | 90.0 |    96.0 |
|    4 | 小六   |    48.0 | 32.0 |    55.0 |
|    5 | 赵六   |    91.0 | 90.0 |    96.0 |
|    6 | 老王   |    23.0 | 36.0 |    NULL |
|    7 | 老六   |    33.0 | 26.0 |    66.0 |
|    8 | 孙武   |    77.0 | 88.0 |    NULL |
+------+--------+---------+------+---------+
8 rows in set (0.00 sec)
🔥基本查询  
--查询语文成绩大于60的同学(>)
mysql>  select * from exam where chinese>60;
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    1 | 张三   |    67.0 | 80.0 |    88.0 |
|    2 | 李四   |    87.0 | 55.0 |    66.0 |
|    3 | 小五   |    91.0 | 90.0 |    96.0 |
|    5 | 赵六   |    91.0 | 90.0 |    96.0 |
|    8 | 孙武   |    77.0 | 88.0 |    NULL |
+------+--------+---------+------+---------+
5 rows in set (0.00 sec)--查询英语成绩小于60的同学(其结果集会自动过滤null)
mysql> select * from exam where english<60;
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    4 | 小六   |    48.0 | 32.0 |    55.0 |
+------+--------+---------+------+---------+
1 row in set (0.00 sec)--查询数学成绩为90的同学(=)
mysql>  select * from exam where math=90;
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    3 | 小五   |    91.0 | 90.0 |    96.0 |
|    5 | 赵六   |    91.0 | 90.0 |    96.0 |
+------+--------+---------+------+---------+
2 rows in set (0.00 sec)--查询数学成绩为85的同学(=)
mysql>   select * from exam where math=85;
--不存在数学成绩为85的同学,显示为空
Empty set (0.00 sec)--查询数学成绩不为90的同学(<>或者!=)
mysql>  select * from exam where math<>90;
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    1 | 张三   |    67.0 | 80.0 |    88.0 |
|    2 | 李四   |    87.0 | 55.0 |    66.0 |
|    4 | 小六   |    48.0 | 32.0 |    55.0 |
|    6 | 老王   |    23.0 | 36.0 |    NULL |
|    7 | 老六   |    33.0 | 26.0 |    66.0 |
|    8 | 孙武   |    77.0 | 88.0 |    NULL |
+------+--------+---------+------+---------+
6 rows in set (0.00 sec)--查询语数英总分小于150的同学
mysql> select *from exam where chinese+english+math<150;
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    4 | 小六   |    48.0 | 32.0 |    55.0 |
|    7 | 老六   |    33.0 | 26.0 |    66.0 |
+------+--------+---------+------+---------+
2 rows in set (0.00 sec)--where不能使用别名,否则会报错
mysql> select name,chinese+math+english as total from exam where total<150;
ERROR 1054 (42S22): Unknown column 'total' in 'where clause'--进行条件查询的同时可以对数据进行排序
mysql>  select name,chinese+math+english as total from exam where chinese+english+math<150 order by total asc;
+--------+-------+
| name   | total |
+--------+-------+
| 老六   | 125.0 |
| 小六   | 135.0 |
+--------+-------+
2 rows in set (0.00 sec)
  •  结果集会自动过滤掉null;
  •  where不能使用别名,否则会发生报错;

为什么where不能使用别名?

这与MySQL执行SQL语句有关 

执行顺序:

  1. 首先确定表,执行from;
  2. 查询的时候爸符合条件的数据过滤处理,也就是接下来执行where语句,此时where语句还没有被定义别名;
  3. 随后执行select后面指定的列,将指定列加入到最中的结构中;
  4. 排序操作,根据order by子句中指定的列名和排序规则进行最后的排序。

🔥and与or
mysql>  select * from exam where math<60 or chinese>40 and english<70;
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    2 | 李四   |    87.0 | 55.0 |    66.0 |
|    4 | 小六   |    48.0 | 32.0 |    55.0 |
|    6 | 老王   |    23.0 | 36.0 |    NULL |
|    7 | 老六   |    33.0 | 26.0 |    66.0 |
+------+--------+---------+------+---------+
4 rows in set (0.00 sec)
  •  and与or的优先级比较

  • 优先级顺序:not>and>or;
  • 建议:用的时候还是手动加括号; 

  • 范围查询

1.between...and...

--查询英语成绩在60-90的同学(between a and b)
mysql>  select * from exam where english between 60 and 90;
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    1 | 张三   |    67.0 | 80.0 |    88.0 |
|    2 | 李四   |    87.0 | 55.0 |    66.0 |
|    7 | 老六   |    33.0 | 26.0 |    66.0 |
+------+--------+---------+------+---------+
3 rows in set (0.00 sec)--也可以使用and
mysql> select * from exam where english >=60 and english <=90;
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    1 | 张三   |    67.0 | 80.0 |    88.0 |
|    2 | 李四   |    87.0 | 55.0 |    66.0 |
|    7 | 老六   |    33.0 | 26.0 |    66.0 |
+------+--------+---------+------+---------+
3 rows in set (0.00 sec)
  • between...and...左右是闭区间; 

2. in

--查找语文成绩为33或者87或者66的同学(in)
mysql> select * from exam where chinese in(33,87,66);
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    2 | 李四   |    87.0 | 55.0 |    66.0 |
|    7 | 老六   |    33.0 | 26.0 |    66.0 |
+------+--------+---------+------+---------+
2 rows in set (0.01 sec)--也可以使用or来表示
mysql> select * from exam where chinese=33 or chinese=87 or  chinese=66;
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    2 | 李四   |    87.0 | 55.0 |    66.0 |
|    7 | 老六   |    33.0 | 26.0 |    66.0 |
+------+--------+---------+------+---------+
2 rows in set (0.01 sec)

 🔥模糊查询:like
--查找老开头的名字(%):
mysql> select * from exam where name like '老%';
+------+-----------+---------+------+---------+
| id   | name      | chinese | math | english |
+------+-----------+---------+------+---------+
|    6 | 老王      |    23.0 | 36.0 |    NULL |
|    7 | 老六      |    33.0 | 26.0 |    66.0 |
|    8 | 老小四    |    22.0 | 87.0 |    92.0 |
+------+-----------+---------+------+---------+
3 rows in set (0.00 sec)--查找最后一个名字为六的名字:
mysql> select * from exam where name like '%六';
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    4 | 小六   |    48.0 | 32.0 |    55.0 |
|    5 | 赵六   |    91.0 | 90.0 |    96.0 |
|    7 | 老六   |    33.0 | 26.0 |    66.0 |
+------+--------+---------+------+---------+
3 rows in set (0.00 sec)--查找名字开头为老,且名只有一个的名字:
mysql>  select * from exam where name like '老_';
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    6 | 老王   |    23.0 | 36.0 |    NULL |
|    7 | 老六   |    33.0 | 26.0 |    66.0 |
+------+--------+---------+------+---------+
2 rows in set (0.00 sec)--查找语文成绩为9开头的同学:
mysql>  select * from exam where chinese like '9%';
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    3 | 小五   |    91.0 | 90.0 |    96.0 |
|    5 | 赵六   |    91.0 | 90.0 |    96.0 |
+------+--------+---------+------+---------+
2 rows in set (0.00 sec)
  • 查询时要使用 like 不能使用 = ;
  • %表示任意多个(包括0个)任意字符;
  • _表示任意一个字符;
  • 要记得加上单引号,否则报错;

 🔥Null查询
--查找英语成绩为null的同学:
mysql>  select * from exam where english is null;
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    6 | 老王   |    23.0 | 36.0 |    NULL |
|    8 | 孙武   |    77.0 | 88.0 |    NULL |
+------+--------+---------+------+---------+
2 rows in set (0.00 sec)--查找英语成绩不为null的同学:
mysql> select * from exam where english is  not null;
+------+-----------+---------+------+---------+
| id   | name      | chinese | math | english |
+------+-----------+---------+------+---------+
|    1 | 张三      |    67.0 | 80.0 |    88.0 |
|    2 | 李四      |    87.0 | 55.0 |    66.0 |
|    3 | 小五      |    91.0 | 90.0 |    96.0 |
|    4 | 小六      |    48.0 | 32.0 |    55.0 |
|    5 | 赵六      |    91.0 | 90.0 |    96.0 |
|    7 | 老六      |    33.0 | 26.0 |    66.0 |
|    8 | 老小四    |    22.0 | 87.0 |    92.0 |
+------+-----------+---------+------+---------+
7 rows in set (0.00 sec)--也可以使用<=>
mysql>  select * from exam where english <=> null;
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    6 | 老王   |    23.0 | 36.0 |    NULL |
|    8 | 孙武   |    77.0 | 88.0 |    NULL |
+------+--------+---------+------+---------+
2 rows in set (0.00 sec)
  • 查询null值时,不能使用=,!=,否则显示为空;

  • 也可以使用<=>来查找为null的值; 

🔥分页查询:limit

概念: 

分页查询:用于将大量数据按照一定的大小进行划分,以便逐页获取和展示数据。 

语法:

--从0开始筛选n条结果:
select * from table_name [where...][order by...] limit n;
--从s开始筛选n条结果:
select * from table_name [where...][order by...] limit s,n;
--从s开始筛选n条结果(更明确):
select * from table_name [where...][order by...] limit n offset s;
  • 起始下标是由0开始;
  • s表示起始位置;
  • n表示每页显示的记录数; 
  • offset表示起始位置;

 示例:

--从第一条开始,记录数为0:
--写法一:
mysql>  select * from exam limit 3;
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    1 | 张三   |    67.0 | 80.0 |    88.0 |
|    2 | 李四   |    87.0 | 55.0 |    66.0 |
|    3 | 小五   |    91.0 | 90.0 |    96.0 |
+------+--------+---------+------+---------+
3 rows in set (0.00 sec)--写法二:
mysql> select * from exam limit 0,3;
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    1 | 张三   |    67.0 | 80.0 |    88.0 |
|    2 | 李四   |    87.0 | 55.0 |    66.0 |
|    3 | 小五   |    91.0 | 90.0 |    96.0 |
+------+--------+---------+------+---------+
3 rows in set (0.00 sec)--写法三:
mysql>  select * from exam limit 3 offset 0;
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    1 | 张三   |    67.0 | 80.0 |    88.0 |
|    2 | 李四   |    87.0 | 55.0 |    66.0 |
|    3 | 小五   |    91.0 | 90.0 |    96.0 |
+------+--------+---------+------+---------+
3 rows in set (0.00 sec)
  •  每一页起始位置的计算公式:s=(当前页号-1)*每页显示的记录数;

3.✨修改(update)

语法:

UPDATE table_name SET column = expr [, column = expr ...][WHERE ...] [ORDER BY ...] [LIMIT ...]
  • update:表示制定要更新的表;
  • set:用于指定要更新的列和新值,也可以更新多个列,用逗号隔开;
  • where:可选句子,用于指定更新的条件。如果不使用where句子,那么将更新所有行。

示例:

--更新单条数据:
--将编号为1的同学姓名更改为王五
mysql> update exam set name = '王五' where id=1;
Query OK, 1 row affected (0.10 sec)
Rows matched: 1  Changed: 1  Warnings: 0--更新多条记录
--将语文成绩小于60的同学成绩加上0.6:
mysql>  update exam set chinese=chinese+0.7 where chinese<60;
Query OK, 4 rows affected (0.06 sec)
Rows matched: 4  Changed: 4  Warnings: 0--不加where:
--将所有同学的数学成绩加上0.5
mysql>  update exam set math=math+0.5 ;
Query OK, 9 rows affected (0.10 sec)
Rows matched: 9  Changed: 9  Warnings: 0mysql>  select * from exam;
+------+-----------+---------+------+---------+
| id   | name      | chinese | math | english |
+------+-----------+---------+------+---------+
|    1 | 王五      |    67.0 | 80.5 |    88.0 |
|    2 | 李四      |    87.0 | 55.5 |    66.0 |
|    3 | 小五      |    91.0 | 90.5 |    96.0 |
|    4 | 小六      |    48.7 | 32.5 |    55.0 |
|    5 | 赵六      |    91.0 | 90.5 |    96.0 |
|    6 | 老王      |    23.7 | 36.5 |    NULL |
|    7 | 老六      |    33.7 | 26.5 |    66.0 |
|    8 | 孙武      |    77.0 | 88.5 |    NULL |
|    8 | 老小四    |    22.7 | 87.5 |    92.0 |
+------+-----------+---------+------+---------+
9 rows in set (0.00 sec)

4.✨删除(delete)

语法:

delete from table_name [where...][order by...][limit...];
  •  delete from:指定要删除的表;
  • where:可选句子,用于指定删除的条件。如果不使用where句子,那么将删除所有数据。

示例:

--先查询语文成绩小于60的同学:
mysql> select * from exam where chinese<60;
+------+-----------+---------+------+---------+
| id   | name      | chinese | math | english |
+------+-----------+---------+------+---------+
|    4 | 小六      |    48.7 | 32.5 |    55.0 |
|    6 | 老王      |    23.7 | 36.5 |    NULL |
|    7 | 老六      |    33.7 | 26.5 |    66.0 |
|    8 | 老小四    |    22.7 | 87.5 |    92.0 |
+------+-----------+---------+------+---------+
4 rows in set (0.00 sec)--将语文成绩小于60的同学进行排序,删除两条记录:
mysql>  delete from exam where chinese<60 order by chinese asc limit 2;
Query OK, 2 rows affected (0.08 sec)----删除后语文成绩小于60的同学:
mysql> select * from exam where chinese<60;
+------+--------+---------+------+---------+
| id   | name   | chinese | math | english |
+------+--------+---------+------+---------+
|    4 | 小六   |    48.7 | 32.5 |    55.0 |
|    7 | 老六   |    33.7 | 26.5 |    66.0 |
+------+--------+---------+------+---------+
2 rows in set (0.00 sec)

基本查询差不多就到这里就完结啦🌹🌹🌹

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/29314.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

知识周汇 | Python操作Excel全攻略系列(一):模块详解篇

目录 系列文章 前言 1 知识概览 2 模块详解 2.1 openpyxl 2.2 pandas 2.3 xlrd 2.4 xlwt 2.5 xlsxwriter 2.6 xlwing 3 后续 系列文章 知识周汇 | Python操作Excel全攻略系列&#xff08;二&#xff09;&#xff1a;文件操作篇 知识周汇 | Python操作Excel全攻略系…

NVIDIA GPU 架构详解:Pascal、Volta、Turing、Ampere、Ada、Hopper、Blackwell

目录 1. Pascal&#xff08;帕斯卡&#xff09;架构&#xff08;2016&#xff09;关键技术性能特性代表产品应用场景 2. Volta&#xff08;伏特&#xff09;架构&#xff08;2017&#xff09;关键技术性能特性代表产品应用场景 3.Turing&#xff08;图灵&#xff09;架构&#…

SpringMVC学习(controller层加载控制与(业务、功能)bean加载控制、Web容器初始化配置类)(3)

目录 一、SpringMVC、Spring的bean加载控制。 &#xff08;1&#xff09;实际开发的包结构层次。 &#xff08;2&#xff09;如何"精准"控制两个容器分别加载各自bean。(分析) <1>SpringMVC相关bean加载控制。(方法) <2>Spring相关bean加载控制。(方法) …

通过Docker搭个游戏——疯狂大陆(Pkland)

最近在研究我的服务器&#xff0c;在服务器上搭了很多docker的项目&#xff0c;然后找着找着发现一个能用Docker配置环境的游戏叫Pkland。 项目地址&#xff1a;GitHub - popkarthb/pkland: 疯狂大陆是一款多人在线的战略游戏。 游戏操作简捷,您仅需要使用浏览器就可以在任何时…

【SpringBoot】深入解析 Maven 的操作与配置

Maven 1.什么是Maven? Maven是一个项目管理工具&#xff0c;通过pom.xml文件的配置获取jar包&#xff0c;而不用手动去添加jar包&#xff1b; 2. 创建一个Maven项目 IDEA本身已经集成了Maven&#xff0c;我们可以直接使用&#xff0c;无需安装 以下截图的idea版本为&#xff…

Cursor + IDEA 双开极速交互

相信很多开发者朋友应该和我一样吧&#xff0c;都是Cursor和IDEA双开的开发模式:在Cursor中快速编写和生成代码&#xff0c;然后在IDEA中进行调试和优化 在这个双开模式的开发过程中&#xff0c;我就遇到一个说大不大说小不小的问题&#xff1a; 得在两个编辑器之间来回切换查…

HarmonyOS:如何将图片转为PixelMap并进行图片缓存策略

前言&#xff1a;在HarmonyOS项目开发中&#xff0c;我们使用Ark-Ts语言开发项目。我们有个功能是拍照&#xff0c;除了正常显示出来&#xff0c;并且上传服务器。我在开发过程中&#xff0c;遇到的问题是&#xff0c;如果离开这个页面再回到当前页面仍要显示图片&#xff0c;那…

ctf网络安全比赛有一张图片怎么查看

0102-JavaScript简介&&作用 02简介 JavaScript 是互联网上最流行的脚本语言&#xff0c;这门语言可用于 HTML 和 web&#xff0c;更可广泛用于服务器、PC、笔记本电脑、平板电脑和智能手机等设备。 03作用 JavaScript 是脚本语言 JavaScript 是一种轻量级的编程语…

搭建一个简单的node服务,模拟后端接口

目录 一、查看是否安装了node和npm 二、创建一个文件夹&#xff0c;用于放你的node服务代码 三、初始化一个package.json 四、安装 Express&#xff08;快速搭建服务的框架&#xff09; 五、创建serve.js 六、运行服务即可 七、测试接口 法一&#xff1a;使用 curl 法…

【五.LangChain技术与应用】【31.LangChain ReAct Agent:反应式智能代理的实现】

一、ReAct Agent是啥?为什么说它比「普通AI」聪明? 想象一下,你让ChatGPT查快递物流,它可能直接编个假单号糊弄你。但换成ReAct Agent,它会先推理(Reasoning)需要调用哪个接口,再行动(Action)查询真实数据——这就是ReAct的核心:让AI学会「动脑子」再动手。 举个真…

BUUCTF逆向刷题笔记(1-12)

easyre、内涵的软件、xor、不一样的flag&#xff1a; buuctf reverse部分题解&#xff08;实时更新&#xff09;_reverse 题解-CSDN博客 请见小库里的blog。 reverse1 查壳发现没有&#xff0c;而且是64位 粗略改一下部分函数名&#xff0c;看看主要逻辑。 第一个for循环暂…

OceanBase-obcp-v3考试资料梳理

集群架构 基本概念 集群: 集群由一个或多个Region组成,Region 由一个或多个Zone组成,Zone由一个或多个OBServer组成,每个OBServer里有若干个partition的Replica。 Region: 对应物理上的一个城市或地域,当OB集群由多个Region组成时, 数据库的数据和服务能力就具备地域…

【C++】双指针算法

我们还有更长的路要走&#xff0c;不过没关系&#xff0c;道路就是生活。 前言 这是我自己学习蓝桥杯算法的第一篇博客总结。后期我会继续把蓝桥杯算法学习笔记开源至博客上。 技巧 1. 双指针算法&#xff0c;但实际上是利用数组下标来充当指针&#xff0c;并不是直接使用指…

如何使用MyBatis进行多表查询

前言 在实际开发中&#xff0c;对数据库的操作通常会涉及多张表&#xff0c;MyBatis提供了关联映射&#xff0c;这些关联映射可以很好地处理表与表&#xff0c;对象与对象之间的的关联关系。 一对一查询 步骤&#xff1a; 先确定表的一对一关系确定好实体类&#xff0c;添加关…

江科大51单片机笔记【9】DS1302实时时钟(上)

一、DS1302介绍 DS1302是由美国DALLAS公司推出的具有涓细电流充电能力的低功耗实时时钟芯片。它可以对年、月、日、周、时、分、秒进行计时&#xff0c;且具有闰年补偿等多种功能。RTC&#xff08;Real Time Clock&#xff09;&#xff1a;实时时钟&#xff0c;是一种集成电路…

【Python项目】基于深度学习的车辆特征分析系统

【Python项目】基于深度学习的车辆特征分析系统 技术简介&#xff1a;采用Python技术、MySQL数据库、卷积神经网络&#xff08;CNN&#xff09;等实现。 系统简介&#xff1a;该系统基于深度学习技术&#xff0c;特别是卷积神经网络&#xff08;CNN&#xff09;&#xff0c;用…

汽车智能钥匙中PKE低频天线的作用

PKE&#xff08;Passive Keyless Entry&#xff09;即被动式无钥匙进入系统&#xff0c;汽车智能钥匙中PKE低频天线在现代汽车的智能功能和安全保障方面发挥着关键作用&#xff0c;以下是其具体作用&#xff1a; 信号交互与身份认证 低频信号接收&#xff1a;当车主靠近车辆时…

大模型AI平台DeepSeek 眼中的SQL2API平台:QuickAPI、dbapi 和 Magic API 介绍与对比

目录 1 QuickAPI 介绍 2 dbapi 介绍 3 Magic API 介绍 4 简单对比 5 总结 统一数据服务平台是一种低代码的方式&#xff0c;实现一般是通过SQL能直接生成数据API&#xff0c;同时能对产生的数据API进行全生命周期的管理&#xff0c;典型的SQL2API的实现模式。 以下是针对…

【CF】C. Tokitsukaze and Two Colorful Tapes+C. Where is the Pizza?

https://codeforces.com/contest/1677/problem/C https://codeforces.com/contest/1670/problem/C 两道很像的的题目&#xff0c;都和环有关 C. Tokitsukaze and Two Colorful Tapes 题目&#xff1a; 思路&#xff1a; 题意就是给定你两排颜色&#xff0c;要求在相同的颜色…

leetcode0020 - 有效的括号 easy

1 题目&#xff1a;有效的括号 给定一个只包括 ‘(’&#xff0c;‘)’&#xff0c;‘{’&#xff0c;‘}’&#xff0c;‘[’&#xff0c;‘]’ 的字符串 s &#xff0c;判断字符串是否有效。 有效字符串需满足&#xff1a; 左括号必须用相同类型的右括号闭合。 左括号必须…