Create/Drop schema in postgres
• A schema is a named collection of tables. A schema can also contain views, indexes, sequences, data types, operators, and functions.
postgresql configurationintermediate
by PostgreSQL
14 views
• A schema is a named collection of tables. A schema can also contain views, indexes, sequences, data types, operators, and functions.
1234567891011121314151617181920
• A schema is a named collection of tables. A schema can also contain views, indexes, sequences, data types, operators, and functions.
postgres=#
create schema dba_schema;
CREATE SCHEMA
postgres=#
create schema dba_schema authorization raj2;
CREATE SCHEMA
postgres=#
drop schema dba_schema;
DROP SCHEMA
postgres=#
\dn+
List of schemas
Name | Owner. | Access privileges | Description
------------+----------+----------------------+------------------------
dba_schema | raj2 | |
public | postgres | postgres=UC/postgres+| standard public schema
| | =UC/postgres |
raj. | postgres | |
(3 rows)Please to add comments
No comments yet. Be the first to comment!