检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
r_reason_sk < 6 ); gaussdb=# DELETE FROM tpcds.reason_t1 WHERE r_reason_sk = 7; gaussdb=# COMMIT; -- Delete the tpcds.reason_t1 table. gaussdb=# DROP TABLE tpcds.reason_t1; -- Drop the table. gaussdb=# DROP TABLE tpcds.reason; -- Delete a schema. gaussdb=# DROP SCHEMA tpcds CASCADE
dir; -- Delete the user. gaussdb=# DROP USER jim; Helpful Links CREATE DIRECTORY and DROP DIRECTORY Parent topic: SQL Syntax
You can delete and re-create system catalogs, add columns to them, and insert and update values in them, but doing so may make system information inconsistent and cause system faults. Generally, users should not modify system catalogs or system views, or rename their schemas.
dir; -- Delete the user. gaussdb=#DROP USER jim; Helpful Links CREATE DIRECTORY and DROP DIRECTORY Parent topic: A
the directory object. gaussdb=#DROP DIRECTORY dir; -- Delete the user. gaussdb=#DROP USER jim; Helpful Links CREATE DIRECTORY and DROP DIRECTORY Parent topic: A
DELETE NODE ( nodename [, ... ] ) Deletes nodes from the node group specified by groupname. The deleted nodes still exist in the PGXC_NODE system catalog. This statement only modifies the system catalog and does not delete nodes or redistribute data. Do not call this statement.
FOR SHARE/UPDATE is used to lock rows in a transaction, other transactions cannot modify or delete these rows. When FOR SHARE is used to lock a row, the current transaction and other transactions cannot modify or delete the locked row.
The initial user is not allowed to create, modify, or delete database links. If the upgrade is not committed, the database link cannot be created.
DELETE NODE ( nodename [, ... ] ) Deletes nodes from the node group specified by groupname. The deleted nodes still exist in the PGXC_NODE system catalog. This statement only modifies the system catalog and does not delete nodes or redistribute data. Do not call this statement.
DELETE NODE ( nodename [, ... ] ) Deletes nodes from the node group specified by groupname. The deleted nodes still exist in the PGXC_NODE system catalog. This statement only modifies the system catalog and does not delete nodes or redistribute data. Do not call this statement.
a fast-refresh materialized view. gaussdb=# DROP MATERIALIZED VIEW my_imv; -- Delete the my_table table. gaussdb=# DROP TABLE my_table; Helpful Links ALTER MATERIALIZED VIEW, CREATE INCREMENTAL MATERIALIZED VIEW, CREATE MATERIALIZED VIEW, CREATE TABLE, DROP MATERIALIZED VIEW, and
the fast-refresh materialized view. gaussdb=# DROP MATERIALIZED VIEW my_imv; -- Delete the my_table table. gaussdb=# DROP TABLE my_table; Helpful Links ALTER MATERIALIZED VIEW, CREATE INCREMENTAL MATERIALIZED VIEW, CREATE MATERIALIZED VIEW, CREATE TABLE, DROP MATERIALIZED VIEW,
the directory. gaussdb=# DROP DIRECTORY dir; -- Delete the user. gaussdb=# DROP USER jim; Helpful Links CREATE DIRECTORY and DROP DIRECTORY Parent topic: SQL Syntax
the fast-refresh materialized view. openGauss=# DROP MATERIALIZED VIEW my_imv; -- Delete the my_table table. openGauss=# DROP TABLE my_table; Helpful Links ALTER MATERIALIZED VIEW, CREATE INCREMENTAL MATERIALIZED VIEW, CREATE MATERIALIZED VIEW, CREATE TABLE, DROP MATERIALIZED VIEW
the fast-refresh materialized view. openGauss=# DROP MATERIALIZED VIEW my_imv; -- Delete the my_table table. openGauss=# DROP TABLE my_table; Helpful Links ALTER MATERIALIZED VIEW, CREATE INCREMENTAL MATERIALIZED VIEW, CREATE MATERIALIZED VIEW, CREATE TABLE, DROP MATERIALIZED VIEW
END emp_bonus; / -- Delete the package. gaussdb=#DROP PACKAGE emp_bonus; -- Switch back to the initial database and delete the ORA-compatible database.
SNAPSHOT s1@1.0; -- Delete the table. gaussdb=# DROP TABLE t1; Parent topic: SQL Syntax
the view. gaussdb=# DROP VIEW tpcds.customer_details_view_v2; -- Delete tpcds.customer_demographics_t2. gaussdb=# DROP TABLE tpcds.customer_demographics_t2; -- Delete the tpcds.customer table. gaussdb=# DROP TABLE tpcds.customer; -- Delete the schema. gaussdb=# DROP SCHEMA tpcds
If you fail to delete an object by specifying its name after truncation, specify its original name to delete it, or manually delete it from the system catalogs on each node.
the tpcds.reason table. gaussdb=# DROP TABLE tpcds.reason; -- Delete a schema. gaussdb=# DROP SCHEMA tpcds; Helpful Links COMMIT | END, ROLLBACK, and SET TRANSACTION Parent topic: SQL Syntax