Previous Topic

Next Topic

Alter Group

Valid in: SQL, ESQL

The Alter Group statement adds or drops user identifiers from the user list associated with a group identifier.

Previous Topic

Next Topic

Syntax

The Alter Group statement has the following format:

[EXEC SQL] ALTER GROUP group_id {, group_id}

ADD USERS (user_id {, user_id}) | DROP USERS (user_id {, user_id}) | DROP ALL

Previous Topic

Next Topic

Embedded Usage

You cannot use host language variables in an embedded Alter Group statement.

Previous Topic

Next Topic

Permissions

You must have maintain_users privileges and be working in a session connected with the iidbdb database.

Previous Topic

Next Topic

Locking

The Alter Group statement locks pages in the iiusergroup catalog in the iidbdb. This can cause sessions attempting to connect to the server to be suspended until the alter group statement is completed.

Previous Topic

Next Topic

Related Statements

Create Group

Drop Group

Previous Topic

Next Topic

Examples: Alter Group

The following examples add and drop user identifiers from the user list associated with a group identifier:

  1. Add users to the group, sales_clerks.

    exec sql alter group sales_clerks
    add users (dannyh, helent);

  2. Drop three users from the group, tel_sales.

    exec sql alter group tel_sales
    drop users (harryk, joanb, elainet);

  3. In an application, drop all users from the group, researchers.

    exec sql alter group researchers drop all;


© 2007 Ingres Corporation. All rights reserved.