五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網 會員登陸 & 注冊

ORACLE12.2以上版本 對象名長度限制超過30個字符

2021-08-05 18:05 作者:夜灬長夢多  | 我要投稿

數(shù)據(jù)庫兼容級別在12.2以前,對象名長度只能低于31個字符, 在12.2以上,可以達到128個字符。


SQL> create table
test_128_abcdefghijklmnopqrstuvwxyz_abcdefghijklmnopqrstuvwxyz_abcdefghijklmnopqrstuvwxyz_abcdefghijklmnopqrstuvwxyz_abcdefghij(empid number);
Table created.
SQL> select table_name,length(table_name) from dba_tables where length(table_name)>100;
TABLE_NAME

--------------------------------------------------------------------------------
LENGTH(TABLE_NAME)
------------------

TEST_128_ABCDEFGHIJKLMNOPQRSTUVWXYZ_ABCDEFGHIJKLMNOPQRSTUVWXYZ_ABCDEFGHIJKLMNOPQ

RSTUVWXYZ_ABCDEFGHIJKLMNOPQRSTUVWXYZ_ABCDEFGHIJ
127
SQL> create table
test_128_abcdefghijklmnopqrstuvwxyz_abcdefghijklmnopqrstuvwxyz_abcdefghijklmnopqrstuvwxyz_abcdefghijklmnopqrstuvwxyz_abcdefghijk(empid number);
Table created.
SQL> select table_name,length(table_name) from dba_tables where length(table_name)>100;
TABLE_NAME

--------------------------------------------------------------------------------
LENGTH(TABLE_NAME)
------------------

TEST_128_ABCDEFGHIJKLMNOPQRSTUVWXYZ_ABCDEFGHIJKLMNOPQRSTUVWXYZ_ABCDEFGHIJKLMNOPQ

RSTUVWXYZ_ABCDEFGHIJKLMNOPQRSTUVWXYZ_ABCDEFGHIJ
127

TEST_128_ABCDEFGHIJKLMNOPQRSTUVWXYZ_ABCDEFGHIJKLMNOPQRSTUVWXYZ_ABCDEFGHIJKLMNOPQ

RSTUVWXYZ_ABCDEFGHIJKLMNOPQRSTUVWXYZ_ABCDEFGHIJK
128
SQL> create table
test_128_abcdefghijklmnopqrstuvwxyz_abcdefghijklmnopqrstuvwxyz_abcdefghijklmnopqrstuvwxyz_abcdefghijklmnopqrstuvwxyz_abcdefghijkl(empid number);
create table
test_128_abcdefghijklmnopqrstuvwxyz_abcdefghijklmnopqrstuvwxyz_abcdefghijklmnopqrstuvwxyz_abcdefghijklmnopqrstuvwxyz_abcdefghijkl(empid number)
*
ERROR at line 1:
ORA-00972: identifier is too long
SQL> show parameter compatible
NAME TYPE VALUE

------------------------------------ -----------?------------------------------
compatible string 19.0.0
附 mos Doc ID 2405749.1

Create Long Identifier Object Name With More Than 30 Bytes (Doc ID 2405749.1) To BottomTo Bottom

In this Document

Goal

Solution

appLIES TO:

Oracle Database Cloud Schema Service - Version N/A and later

Oracle Cloud Infrastructure - Database Service - Version N/A and later

Oracle Database Backup Service - Version N/A and later

Oracle Database Cloud Service - Version N/A and later

Oracle Database - Standard Edition - Version 12.1.0.2 to 12.2.0.1 [Release 12.1 to 12.2]

Information in this document applies to any platform.

GOAL

Can we create long identifier object name with more than 30 bytes?


SOLUTION

Long identifier limitation is increased to 128 in 12.2. But in 12.1, its 30 and no work around for this.



For 12.2:

https://docs.oracle.com/en/database/oracle/oracle-database/12.2/sqlrf/Database-Object-Names-and-Qualifiers.html

If COMPATIBLE is set to a value of 12.2 or higher, then names must be from 1 to 128 bytes long with these exceptions:


Names of databases are limited to 8 bytes.


Names of disk groups, pluggable databases (PDBs), rollback segments, tablespaces, and tablespace sets are limited to 30 bytes.


If an identifier includes multiple parts separated by periods, then each attribute can be up to 128 bytes long. Each period separator, as well as any surrounding double quotation marks, counts as one byte. For example, suppose you identify a column like this:


"schema"."table"."column"


The schema name can be 128 bytes, the table name can be 128 bytes, and the column name can be 128 bytes. Each of the quotation marks and periods is a single-byte character, so the total length of the identifier in this example can be up to 392 bytes.


For 12.1:


https://docs.oracle.com/database/121/SQLRF/sql_elements008.htm#SQLRF51129


Names must be from 1 to 30 bytes long with these exceptions:


Names of databases are limited to 8 bytes.


Names of database links can be as long as 128 bytes.


If an identifier includes multiple parts separated by periods, then each attribute can be up to 30 bytes long. Each period separator, as well as any surrounding double quotation marks, counts as one byte. For example, suppose you identify a column like this:


"schema"."table"."column"


The schema name can be 30 bytes, the table name can be 30 bytes, and the column name can be 30 bytes. Each of the quotation marks and periods is a single-byte character, so the total length of the identifier in this example



ORACLE12.2以上版本 對象名長度限制超過30個字符的評論 (共 條)

分享到微博請遵守國家法律
和平区| 岑巩县| 乌拉特中旗| 瑞金市| 怀化市| 平南县| 渑池县| 巴马| 上饶县| 垫江县| 眉山市| 台中县| 普宁市| 安国市| 北宁市| 凌海市| 治县。| 江源县| 恩平市| 沂源县| 永修县| 安泽县| 云龙县| 昂仁县| 辉南县| 正定县| 鄄城县| 屯门区| 搜索| 苗栗县| 兴海县| 上栗县| 临海市| 林州市| 牟定县| 英吉沙县| 格尔木市| 丰原市| 仪陇县| 马公市| 阿克|