Drops a user.
DROP USER user-name
The name of the user you are dropping.
Dropping a user also deletes all database objects (such as tables or procedures) that they own, as well as any external logins for the user. In addition, if the user is specified in the USER clause of any services, then those services are also dropped.
The user being removed cannot be connected to the database when the statement is executed.
If you use this statement in a procedure, do not specify the password as a string literal because the definition of the procedure is visible in the SYSPROCEDURE system view. For security purposes, specify the password using a variable that is declared outside of the procedure definition.
You must have the MANAGE ANY USER system privilege.
None.
Not in the standard.
The following example creates and then drops the user SQLTester.
CREATE USER SQLTester IDENTIFIED BY pass1234; DROP USER SQLTester;