当前位置: 首页 > news >正文

建网站的公司广州排名/运营培训班学费大概多少

建网站的公司广州排名,运营培训班学费大概多少,做网站给女朋友,临平做网站先看下面的例子:oracle中两个系统表.emp,dept.example:1:not exists(not in)not exists: 这条语句返回select * from scott.dep先看下面的例子:Oracle中两个系统表.emp,dept.example:1:not exists(not in)not exists:这条语句返回select * from scott.dept d where e.deptnod.d…

先看下面的例子:oracle中两个系统表.emp,dept.example:1:not exists(not in)not exists: 这条语句返回select * from scott.dep

先看下面的例子:Oracle中两个系统表.emp,dept.example:

1:not exists(not in)

not exists:

这条语句返回select * from scott.dept d where e.deptno=d.deptno and d.deptno=10条件满足的结果集.也就是说,

返回的结果集中不存在d.deptno=10结果集的记录,即emp表中没有dept表中d.deptno=10的记录.

SQL> select empno,ename,deptno from scott.emp e where not exists(select * from scott.dept d where e.deptno=d.deptno and d.deptno=10);

EMPNO ENAME DEPTNO

----- ---------- ------

7369 SMITH 20

7499 ALLEN 30

7521 WARD 30

7566 JONES 20

7654 MARTIN 30

7698 BLAKE 30

7788 SCOTT 20

7844 TURNER 30

7876 ADAMS 20

7900 JAMES 30

7902 FORD 20

11 rows selected

not in:

第一个where条件必须给定字段(deptno), 第二个sql语句中,必须明确给定要查询的字段是哪个(deptno).

SQL> select empno,ename,deptno from scott.emp e where deptno not in(select deptno from scott.dept d where e.deptno=d.deptno and d.deptno=10);

EMPNO ENAME DEPTNO

----- ---------- ------

7369 SMITH 20

7499 ALLEN 30

7521 WARD 30

7566 JONES 20

7654 MARTIN 30

7698 BLAKE 30

7788 SCOTT 20

7844 TURNER 30

7876 ADAMS 20

7900 JAMES 30

7902 FORD 20

11 rows selected

2: exists(in)

exists:

这条语句返回select * from scott.dept d where e.deptno=d.deptno and d.deptno=10条件满足的记录结果集.

也就是说返回的结果集中只存在有d.deptno=10的记录,即emp表中只存在dept表中d.deptno=10的记录.

SQL> select empno,ename,deptno from scott.emp e where exists(select * from scott.dept d where e.deptno=d.deptno and d.deptno=10);

EMPNO ENAME DEPTNO

----- ---------- ------

7782 CLARK 10

7839 KING 10

7934 MILLER 10

in:

第一个where条件必须给定字段(deptno), 第二个sql语句中,必须明确给定要查询的字段是哪个(deptno).

SQL> select empno,ename,deptno from scott.emp e where deptno in(select deptno from scott.dept d where e.deptno=d.deptno and d.deptno=10);

EMPNO ENAME DEPTNO

----- ---------- ------

7782 CLARK 10

7839 KING 10

7934 MILLER 10

oracle 中exists (in)和not exists(not in)是判断是否存在和不存在表中记录的关键子.

请注意:not in 逻辑上不完全等同于not exists,如果你误用了not in,小心你的程序存在致命的BUG:因此,请尽量不要使用not in(它会调用子查询),而尽量使用not exists(它会调用关联子查询)。

logo.gif

f68f2add0b68e4f9810432fce46917b7.png

本文原创发布php中文网,转载请注明出处,感谢您的尊重!

http://www.lbrq.cn/news/1271053.html

相关文章:

  • 用动易做的校园网站/推广软文发布平台
  • 如何留住网站用户/微信代运营
  • 网站发外链/谷歌浏览器官网下载
  • 校园网站集群建设/百度广告收费表
  • 网站实现中英文/windows7优化大师
  • 网站宽屏/什么叫网络营销
  • 网络问卷制作平台/厦门seo厦门起梦
  • 民宅挂在民宿网站上 保洁谁做/seo优化排名工具
  • 手机网站需要多少钱/爱站网反链查询
  • 网站优化成本/开通网站需要多少钱
  • 有什么可以做兼职的网站/广告外链购买交易平台
  • 河南网站建设服务公司/网络推广策划
  • 超级seo助手/百度关键词优化排名
  • 我想做个旅游网站怎么做/如何营销推广
  • 东莞自适应网站建设/安卓优化大师最新版下载
  • 长沙感染人数最新消息/潜江seo
  • 全部网站/鸿星尔克网络营销案例分析
  • 邯郸网站建设咨询安联网络/推广软文范文
  • 北京网站建设 案例/seo网站排名优化快速排
  • 网站修改影响做百度竞价吗/宁波网络营销策划公司
  • 哈尔滨seo优化/优化流程
  • 南昌做网站建设哪家好/b2b免费发布信息平台
  • 手机程序编程/外贸seo是什么意思
  • 平面设计能干到老吗/武汉建站优化厂家
  • 一个旅游网站建设需求分析/苏州排名搜索优化
  • 网站建设案例步骤/关键词优化技巧有哪些
  • 手机免费创网站/企业网站建设的基本流程
  • 网站建设云梦/泰安seo推广
  • 绵阳专门做网站的公司有哪些/杭州关键词优化平台
  • 关于asp网站模板下载/有没有免费的写文案的软件
  • 系统性学习数据结构-第一讲-算法复杂度
  • 红黑树(RBTree)
  • 超越 ChatGPT:智能体崛起,开启全自主 AI 时代
  • 32. flex 的子元素可以浮动吗
  • React核心:组件化与虚拟DOM揭秘
  • .NET Core部署服务器