CREATE OR ALTER USER
Creates a Firebird user account if it doesn’t exist, or alters a Firebird user account
DSQL
CREATE OR ALTER USER username [SET] [<user_option> [<user_option> ...]] [TAGS (<user_var> [, <user_var> ...]] <user_option> ::= PASSWORD 'password' | FIRSTNAME 'firstname' | MIDDLENAME 'middlename' | LASTNAME 'lastname' | {GRANT | REVOKE} ADMIN ROLE | {ACTIVE | INACTIVE} | USING PLUGIN plugin_name <user_var> ::= tag_name = 'tag_value' | DROP tag_name
See [fblangref50-security-user-create] and [fblangref50-security-user-alter] for details on the statement parameters.
If the user does not exist, it will be created as if executing a CREATE USER
statement.If the user already exists, it will be modified as if executing an ALTER USER
statement.The CREATE OR ALTER USER
statement must contain at least one of the optional clauses other than USING PLUGIN
.If the user does not exist yet, the PASSWORD
clause is required.
Note
|
Remember to commit your work if you are working in an application that does not auto-commit DDL. |