当前位置:网站首页>Gbase 8C - SQL reference 6 SQL syntax (11)
Gbase 8C - SQL reference 6 SQL syntax (11)
2022-07-27 07:08:00 【aisirea】
Function description
Remove a table space .
Grammar format
DROP TABLESPACE [ IF EXISTS ] name
Parameter description
- IF EXISTS: If the tablespace does not exist , No error, just prompt ;
- name: The name of the tablespace .
matters needing attention
DROP TABLESPACE Cannot execute within a transaction .
Only the tablespace owner has permission to execute DROP TABLESPACE command .
Example
DROP TABLESPACE gbase8c;
Grammar compatible
DROP TABLESPACE It's a PostgreSQL Expand .
Related to the grammar
CREATE TABLESPACE, ALTER TABLESPACE
Function description
Delete existing text search configuration .
Grammar format
DROP TEXT SEARCH CONFIGURATION [ IF EXISTS ] name [ CASCADE | RESTRICT ]
Parameter description
- IF EXISTS: If the text search configuration does not exist , No error, just prompt ;
- name: Existing text search configuration name , Can be modified by patterns ;
- CASCADE: Automatically delete objects that depend on the text search configuration , And all objects that depend on those objects ;
- RESTRICT: If any object depends on the text search configuration , Then refuse to delete , This is the default setting .
matters needing attention
To execute this command , The user must be the owner of the configuration .
Example
DROP TEXT SEARCH CONFIGURATION gdt1;
DROP TEXT SEARCH CONFIGURATION
Grammar compatible
SQL There is no in the standard DROP TEXT SEARCH CONFIGURATION sentence .
Related to the grammar
ALTER TEXT SEARCH CONFIGURATION, CREATE TEXT SEARCH CONFIGURATION
Function description
Delete the full-text search dictionary .
Grammar format
DROP TEXT SEARCH DICTIONARY [ IF EXISTS ] name [ CASCADE | RESTRICT ]
Parameter description
- IF EXISTS: If the full-text search dictionary does not exist , No error, just prompt ;
- name: The name of the existing text search dictionary , Can be modified by patterns ;
- CASCADE: Automatically delete objects that depend on the full-text search dictionary , And all objects that depend on those objects ;
- RESTRICT: If any object depends on the full-text search dictionary , Then refuse to delete , This is the default setting .
matters needing attention
Only the owner of the dictionary can execute DROP operation .
Example
DROP TEXT SEARCH DICTIONARY my_russian;
Grammar compatible
SQL There is no in the standard DROP TEXT SEARCH DICTIONARY sentence .
Related to the grammar
ALTER TEXT SEARCH DICTIONARY, CREATE TEXT SEARCH DICTIONARY
Function description
Remove a text search parser .
Grammar format
DROP TEXT SEARCH PARSER [ IF EXISTS ] name [ CASCADE | RESTRICT ]
Parameter description
- IF EXISTS: If the text search parser does not exist , No error, just prompt ;
- name: The name of the existing text search parser , Can be modified by patterns ;
- CASCADE: Automatically delete objects that depend on the text search parser , And all objects that depend on those objects ;
- RESTRICT: If any object depends on the text search parser , Then refuse to delete , This is the default setting .
matters needing attention
Only system administrators can remove the text search parser .
Grammar compatible
SQL There is no in the standard DROP TEXT SEARCH PARSER sentence .
Related to the grammar
ALTER TEXT SEARCH PARSER, CREATE TEXT SEARCH PARSER
Function description
Remove a text search template .
Grammar format
DROP TEXT SEARCH TEMPLATE [ IF EXISTS ] name [ CASCADE | RESTRICT ]
Parameter description
- IF EXISTS: If the text search template exists , No error, just prompt ;
- name: Name of existing text search template , Can be modified by patterns ;
- CASCADE: Automatically delete objects that depend on the text search template , And all objects that depend on those objects ;
- RESTRICT: If any object depends on the text search template , Then refuse to delete , This is the default setting .
matters needing attention
Only super users can remove text search templates .
Grammar compatible
SQL There is no in the standard DROP TEXT SEARCH TEMPLATE sentence .
Related to the grammar
ALTER TEXT SEARCH TEMPLATE, CREATE TEXT SEARCH TEMPLATE
Function description
Remove transformation .
Grammar format
DROP TRANSFORM [ IF EXISTS ] FOR type_name LANGUAGE lang_name [ CASCADE | RESTRICT ]
Parameter description
- IF EXISTS: If the transformation does not exist , No error, just prompt ;
- type_name: The name of the data type to be converted ;
- lang_name: The name of the language to be converted ;
- CASCADE: Automatically delete objects that depend on this transformation , And all objects that depend on those objects ;
- RESTRICT: If any object depends on this transformation , Then refuse to delete , This is the default setting .
matters needing attention
Only users with this type and language can delete the transformation .
Example
DROP TRANSFORM FOR hstore LANGUAGE plpythonu;
Grammar compatible
In this form DROP TRANSFORM It's a kind of PostgreSQL Expand .
Related to the grammar
Function description
Remove a data type .
Grammar format
DROP TYPE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
Parameter description
- IF EXISTS: If the type does not exist , No error, just prompt ;
- name: The name of the data type to be removed , Can be modified by patterns ;
- CASCADE: Automatically delete objects that depend on this type ( For example, table columns 、 function 、 The operator ), And all objects that depend on those objects ;
- RESTRICT: If any object depends on this type , Then refuse to delete , This is the default setting .
matters needing attention
Only the owner of the type can delete the type .
Example
DROP TYPE g_compfoo;
DROP TYPE
Grammar compatible
This order is similar to SQL The corresponding command in the standard , but IF EXISTS Clause It's a PostgreSQL Expand .
Related to the grammar
Function description
Remove a database role .
Grammar format
DROP USER [ IF EXISTS ] name [, ...]
matters needing attention
DROP USER yes DROP ROLE An alias for .
Grammar compatible
DROP USER The statement is a PostgreSQL Expand .
Related to the grammar
ALTER USER, CREATE USER, DROP ROLE
Function description
Remove a view .
Grammar format
DROP VIEW [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
Parameter description
- IF EXISTS: If the view does not exist , No error, just prompt ;
- name: Name of the view to be removed , Can be modified by patterns ;
- CASCADE: Automatically delete objects that depend on this view ( For example, other views ), And all objects that depend on those objects ;
- RESTRICT: If any object depends on this view , Then refuse to delete , This is the default setting .
matters needing attention
Only the owner of the view can delete the view .
Example
DROP VIEW g_view;
DROP VIEW
Grammar compatible
This command conforms to SQL standard , Only IF EXISTS The option is a PostgreSQL Expand .
Related to the grammar
Function description
Commit the current transaction .
Grammar format
END [ WORK | TRANSACTION ]
Parameter description
- WORK | TRANSACTION: Optional keywords , There is no effect .
matters needing attention
END The command is equivalent to COMMIT.
Example
END;
COMMIT
Grammar compatible
END It's a kind of PostgreSQL Expand .
Related to the grammar
边栏推荐
- Unittest suite and runner
- Add virtual network card and configure OP route in win10
- deepsort源码解读(三)
- Interpretation of deepsort source code (VII)
- Analysis on the current situation and optimization strategy of customer experience management in banking industry
- Interpretation of deepsort source code (V)
- MySQL的基本语句(1)—增删改查
- [latex format] there are subtitles side by side on the left and right of double columns and double pictures, and subtitles are side by side up and down
- Book borrowing management system based on SSM
- EasyCVR设备管理列表页面搜索时,分页数据不显示的问题修复
猜你喜欢

Dsgan degenerate network

Working principle analysis of deepsort

【11】 Binary code: "holding two roller handcuffs, crying out for hot hot hot"?

vscode运行命令报错:标记“&&”不是此版本中的有效语句分隔符。

Student achievement management system based on SSM

MySQL的基本语句(1)—增删改查

Li Hongyi 2020 deep learning and human language processing dlhlp conditional generation by RNN and attention-p22

DNA科研实验应用|环糊精修饰核酸CD-RNA/DNA|环糊精核酸探针/量子点核酸探针

基于SSM学生学籍管理系统

Campus news release management system based on SSM
随机推荐
Reflection on pytorch back propagation
C time related operation
MySQL的基本语句(1)—增删改查
PNA修饰多肽ARMS-PNA|PNA-DNA|suc-AAPF-pNA|Suc-(Ala)3-pNA
Auto encoder (AE), denoising auto encoder (DAE), variable auto encoder (VAE) differences
TS learning (VIII): classes in TS
DNA coupled PbSe quantum dots | near infrared lead selenide PbSe quantum dots modified DNA | PbSe DNA QDs
deepsort源码解读(六)
TS学习(八) :TS中的类
Book borrowing management system based on SSM
AI:业余时间打比赛—挣它个小小目标—【阿里安全×ICDM 2022】大规模电商图上的风险商品检测比赛
Cyclegan parsing
Deepsort工作原理分析
DNA(脱氧核糖核酸)供应|碳纳米管载核酸-DNA/RNA材料|DNA/RNA核酸修饰磁性纳米颗粒
How can chrome quickly transfer a group of web pages (tabs) to another device (computer)
New features of ES6 (2)
Unittest suite and runner
Li Hongyi 2020 deep learning and human language processing dlhlp conditional generation by RNN and attention-p22
Shell common commands - memos
Error in running code: libboost_ filesystem.so.1.58.0: cannot open shared object file: No such file or directory