没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Oracle® NoSQL Database
SQL Beginner's Guide
Release 21.1
E85380-17
April 2021
Oracle NoSQL Database SQL Beginner's Guide, Release 21.1
E85380-17
Copyright © 2011, 2021, Oracle and/or its affiliates.
This software and related documentation are provided under a license agreement containing restrictions on
use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your
license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license,
transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse
engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is
prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If
you find any errors, please report them to us in writing.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on
behalf of the U.S. Government, then the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs (including any operating system, integrated software,
any programs embedded, installed or activated on delivered hardware, and modifications of such programs)
and Oracle computer documentation or other Oracle data delivered to or accessed by U.S. Government
end users are "commercial computer software" or "commercial computer software documentation" pursuant
to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such,
the use, reproduction, duplication, release, display, disclosure, modification, preparation of derivative works,
and/or adaptation of i) Oracle programs (including any operating system, integrated software, any programs
embedded, installed or activated on delivered hardware, and modifications of such programs), ii) Oracle
computer documentation and/or iii) other Oracle data, is subject to the rights and limitations specified in the
license contained in the applicable contract. The terms governing the U.S. Government’s use of Oracle cloud
services are defined by the applicable contract for such services. No other rights are granted to the U.S.
Government.
This software or hardware is developed for general use in a variety of information management applications.
It is not developed or intended for use in any inherently dangerous applications, including applications that
may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you
shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its
safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this
software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of
their respective owners.
Intel and Intel Inside are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are
used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Epyc,
and the AMD logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered
trademark of The Open Group.
This software or hardware and documentation may provide access to or information about content, products,
and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly
disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise
set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not
be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content,
products, or services, except as set forth in an applicable agreement between you and Oracle.
Contents
Preface
Conventions Used in This Book vi
1
Introduction to SQL for Oracle NoSQL Database
2
Simple SELECT Queries
SQLBasicExamples Script 2-1
Starting the SQL Shell 2-2
Choosing column data 2-2
Substituting column names for a query 2-3
Computing values for new columns 2-4
Identifying tables and their columns 2-4
Filtering Results 2-5
Grouping Results 2-7
Ordering Results 2-7
Limiting and Offsetting Results 2-9
Using External Variables 2-10
3
Working with complex data
SQLAdvancedExamples Script 3-1
Working with Timestamps 3-4
Working With Arrays 3-5
Working with Records 3-11
Using ORDER BY to Sort Results 3-12
Working With Maps 3-13
Using the size() Function 3-16
4
Working with JSON
SQLJSONExamples Script 4-1
iii
Basic Queries 4-4
Using WHERE EXISTS with JSON 4-6
Seeking NULLS in Arrays 4-7
Examining Data Types JSON Columns 4-8
Using Map Steps with JSON Data 4-11
Casting Datatypes 4-12
Using Searched Case 4-13
5
Working With GeoJSON Data
Geodetic Coordinates 5-1
GeoJSON Data Definitions 5-2
Searching GeoJSON Data 5-5
6
Working With Indexes
Basic Indexing 6-1
Using Index Hints 6-2
Complex Indexes 6-3
Multi-Key Indexes 6-4
Indexing JSON Data 6-9
7
Working with Table Rows
Adding Table Rows using INSERT and UPSERT 7-1
Modifying Table Rows using UPDATE Statements 7-4
Example Data 7-4
Changing Field Values 7-4
Modifying Array Values 7-6
Adding Elements to an Array 7-6
Changing an Existing Element in an Array 7-9
Removing Elements from Arrays 7-9
Modifying Map Values 7-12
Removing Elements from a Map 7-13
Adding Elements to a Map 7-14
Updating Existing Map Elements 7-16
Managing Time to Live Values 7-20
Avoiding the Read-Modify-Write Cycle 7-22
A
Introduction to the SQL for Oracle NoSQL Database Shell
Running the SQL Shell A-1
iv
Configuring the shell A-2
Shell Utility Commands A-3
connect A-3
consistency A-3
describe A-4
durability A-5
exit A-5
help A-6
history A-6
import A-6
load A-7
mode A-7
output A-11
page A-12
show faults A-12
show indexes A-12
show mrtable-agent-statistics A-12
show namespaces A-19
show query A-20
show regions A-20
show roles A-21
show tables A-21
show users A-22
timeout A-22
timer A-23
verbose A-23
version A-24
v
剩余117页未读,继续阅读
资源评论
SQL必知必会
- 粉丝: 13
- 资源: 25
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Matlab人脸肤色定理的教师人数统计+源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于Matlab霍夫曼变换的表盘读数识别+源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于Matlab火灾烟雾检测源码带GUI界面+源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于Matlab的恶劣天气交通标志识别系统+源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于MATLAB的霍夫曼变换的表盘示数识别+源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于Matlab的车道线识别系统 +源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于MATLAB的教室人数统计系统带Gui界面+源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于MATLAB的教室人数统计系统带Gui界面+源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于MATLAB 的霍夫曼变换答题卡识别源码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于Matlab+bp神经网络的神经网络汉字识别系统+源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功