Book Contents

Book Index

Next Topic

Home

CREATE USER

CREATE USER adds a name to the list of authorized database users.

Syntax

CREATE USER name [ WITH [ ENCRYPTED | UNENCRYPTED ] PASSWORD 'password' ]

Semantics

 

name

specifies the name of the user to create; names that contain special characters must be double-quoted.

ENCRYPTED

is the default.

password

is the password to assign to the user.

Notes

Examples

CREATE USER Fred;

GRANT USAGE ON SCHEMA PUBLIC to Fred;