Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
Presto实战
by
Matt Fuller
,
Manfred Moser
,
Martin Traverso
March 2021
Intermediate to advanced
265 pages
6h 50m
Chinese
Posts & Telecom Press
Content preview from
Presto实战
在
Presto
中使用
SQL
|
147
没有比较结果为
TRUE
,但子查询中存在一个
NULL
值,那么
IN
表达式的结果是
NULL
。在大
多数情况下这不会被注意到,因为结果无论是
FALSE
还是
NULL
都会导致过滤该行。但是,
如果这个
IN
表达式是作为对
NULL
值敏感的表达式的输入(例如,用
NOT
修饰),这个差异
就会表现出来。
ALL
子查询的工作原理与
ANY
类似。对于外部查询中的某一行,计算子查询,并将表达式
与子查询的每个结果行比较。如果所有的比较结果都为
TRUE
,则
ALL
的结果为
TRUE
;如果
至少有一个比较结果为
FALSE
,则
ALL
的结果为
FALSE
。
与
ANY
一样,
ALL
也有一些初看起来并不明显的细微差别。当子查询为空且没有返回任何
行时,
ALL
就会计算为
TRUE
;如果没有一个比较结果返回
FALSE
且至少有一个比较结果返
回
NULL
,那么
ALL
的结果就是
NULL
。
ALL
最常见的另一个形式是
<> ALL
,等价于
NOT IN
。
8.19
从表中删除数据
DELETE
语句可以删除表中的数据行。该语句提供了一个可选的
WHERE
子句来指定删除哪些
行。若不使用
WHERE
子句,则表中所有数据都会被删除:
DELETE FROM table_name [ WHERE condition ]
有些连接器不支持删除或有限支持删除。例如,
Kafka
连接器不支持删除;
Hive
连接器只
有在
WHERE
子句指定了可用于删除整个分区的分区键时,才支持删除:
DELETE FROM hive.web.page_views
WHERE view_date ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial
You might also like
大数据项目管理:从规划到实现
Ted Malaska, Jonathan Seidman
数据库系统内幕
Alex Petrov
云原生:运用容器、函数计算和数据构建下一代应用
Boris Scholl, Trent Swanson, Peter Jausovec
Google系统架构解密: 构建安全可靠的系统
Heather Adkins, Betsy Beyer, Paul Blankinship, Piotr Lewandowski, Ana Oprea, Adam Stubblefield
Publisher Resources
ISBN: 9787115560056