Extended Syntax

openGauss provides the following extended syntax:

Table 1 Extended SQL syntax

Category

Keywords

Description

Creating a table

column_constraint:

REFERENCES reftable

[ ( refcolumn ) ] [ MATCH

FULL | MATCH PARTIAL |

MATCH SIMPLE ][ ON

DELETE action ] [ ON

UPDATE action ]

Allows you to use REFERENCES reftable[ ( refcolumn ) ] [ MATCH FULL |MATCH PARTIAL | MATCH SIMPLE ] [ ON DELETE action ] [ ON UPDATE action ] to create foreign key constraints for tables.

Loading a module

CREATE EXTENSION

Loads a new module (such as DBLINK) to the current database.

DROP EXTENSION

Deletes the loaded module.

Aggregate functions

CREATE AGGREGATE

Defines a new aggregate function.

ALTER AGGREGATE

Modifies the definition of an aggregate function.

DROP AGGREGATE

Deletes an existing aggregate function.

Feedback
编组 3备份
    openGauss 2024-05-07 00:46:52
    cancel