未加星标

2PL/SQLLanguageFundamentals(基本原理)

字体大小 | |
[数据库(综合) 所属分类 数据库(综合) | 发布者 店小二03 | 时间 2016 | 作者 红领巾 ] 0人收藏点击收藏
This chapter explains these aspects(方面) of the PL/SQL language:
■ Character Sets
■ Lexical Units(词法单元)
■ Declarations
■ References to Identifiers(引用标识符)
■ Scope and Visibility of Identifiers(标识符的范围和可见性)
■ Assigning Values to Variables
■ Expressions
■ Error-Reporting Functions
■ SQL Functions in PL/SQL Expressions
■ Pragmas
■ Conditional Compilation
Character Sets
Any character data to be processed by PL/SQL or stored in a database must be represented(表示) as a sequence of bytes(一个字节序列).
The byte representation of a single character is called a character code.
A set of character codes is called a character set.
Every Oracle database supports a database character set and a national character set.
PL/SQL also supports these character sets.
This document explains how PL/SQL uses the database character set and national character set.
Topics
■ Database Character Set
■ National Character Set

See Also: Oracle Database Globalization Support Guide for general information about character sets

Database Character Set
PL/SQL uses the database character set to represent:
■ Stored source text of PL/SQL units
For information about PL/SQL units, see “PL/SQL Units and Compilation Parameters” on page 1-10.
■ Character values of data types CHAR, VARCHAR2, CLOB, and LONG
For information about these data types, see “SQL Data Types” on page 3-2.
The database character set can be either single-byte, mapping each supported character to one particular byte(每个支持的字符映射到一个特定的字节), or multibyte-varying-width(多字节不同宽度), mapping each supported character to a sequence of(一系列) one, two, three, or four bytes.
The maximum number of bytes in a character code depends on the particular character set.
Every database character set includes these basic characters:
■ Latin letters(拉丁字母): A through Z and a through z
■ Decimal digits(小数位数): 0 through 9
■ Punctuation characters(标定符号) in Table 2–1
■ Whitespace characters(空格字符): space, tab, new line, and carriage return(回车)
PL/SQL source text that uses only the basic characters can be stored and compiled in any database.
PL/SQL source text that uses nonbasic characters can be stored and compiled only in databases whose database character sets support those nonbasic characters.
Table 2–1 Punctuation Characters in Every Database Character Set
2PL/SQLLanguageFundamentals(基本原理)
2PL/SQLLanguageFundamentals(基本原理)
2PL/SQLLanguageFundamentals(基本原理)

See Also: Oracle Database Globalization SuppZ

本文数据库(综合)相关术语:系统安全软件

主题: SQL
分页:12
转载请注明
本文标题:2PL/SQLLanguageFundamentals(基本原理)
本站链接:http://www.codesec.net/view/483023.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 数据库(综合) | 评论(0) | 阅读(32)