Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
ALTER SCHEMA
Prev UpSQL CommandsHome Next

ALTER SCHEMA

ALTER SCHEMA — change the definition of a schema

Synopsis

ALTER SCHEMAname RENAME TOnew_nameALTER SCHEMAname OWNER TO {new_owner | CURRENT_USER | SESSION_USER }

Description

ALTER SCHEMA changes the definition of a schema.

You must own the schema to useALTER SCHEMA. To rename a schema you must also have theCREATE privilege for the database. To alter the owner, you must also be a direct or indirect member of the new owning role, and you must have theCREATE privilege for the database. (Note that superusers have all these privileges automatically.)

Parameters

name

The name of an existing schema.

new_name

The new name of the schema. The new name cannot begin withpg_, as such names are reserved for system schemas.

new_owner

The new owner of the schema.

Compatibility

There is noALTER SCHEMA statement in the SQL standard.


Prev Up Next
ALTER RULE Home ALTER SEQUENCE
epubpdf
Go to PostgreSQL 12
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp