167 lines
3.4 KiB
Plaintext
167 lines
3.4 KiB
Plaintext
<REFENTRY ID="SQL-DROPUSER">
|
|
<REFMETA>
|
|
<REFENTRYTITLE>
|
|
DROP USER
|
|
</REFENTRYTITLE>
|
|
<REFMISCINFO>SQL - Language Statements</REFMISCINFO>
|
|
</REFMETA>
|
|
<REFNAMEDIV>
|
|
<REFNAME>
|
|
DROP USER
|
|
</REFNAME>
|
|
<REFPURPOSE>
|
|
Removes an user account information
|
|
</REFPURPOSE>
|
|
</refnamediv>
|
|
<REFSYNOPSISDIV>
|
|
<REFSYNOPSISDIVINFO>
|
|
<DATE>1998-09-22</DATE>
|
|
</REFSYNOPSISDIVINFO>
|
|
<SYNOPSIS>
|
|
DROP USER <REPLACEABLE CLASS="PARAMETER">username</REPLACEABLE>
|
|
</SYNOPSIS>
|
|
|
|
<REFSECT2 ID="R2-SQL-DROPUSER-1">
|
|
<REFSECT2INFO>
|
|
<DATE>1998-09-22</DATE>
|
|
</REFSECT2INFO>
|
|
<TITLE>
|
|
Inputs
|
|
</TITLE>
|
|
<PARA>
|
|
</PARA>
|
|
<VARIABLELIST>
|
|
<VARLISTENTRY>
|
|
<TERM>
|
|
<REPLACEABLE CLASS="PARAMETER">username</REPLACEABLE>
|
|
</TERM>
|
|
<LISTITEM>
|
|
<PARA>
|
|
The name of an existing user.
|
|
</PARA>
|
|
</LISTITEM>
|
|
</VARLISTENTRY>
|
|
</variablelist>
|
|
</REFSECT2>
|
|
|
|
<REFSECT2 ID="R2-SQL-DROPUSER-2">
|
|
<REFSECT2INFO>
|
|
<DATE>1998-09-22</DATE>
|
|
</REFSECT2INFO>
|
|
<TITLE>
|
|
Outputs
|
|
</TITLE>
|
|
<PARA>
|
|
<VARIABLELIST>
|
|
<VARLISTENTRY>
|
|
<TERM>
|
|
<ReturnValue>DROP</ReturnValue>
|
|
</TERM>
|
|
<LISTITEM>
|
|
<PARA>
|
|
The message returned if the user is successfully deleted.
|
|
</PARA>
|
|
</LISTITEM>
|
|
</VARLISTENTRY>
|
|
<VARLISTENTRY>
|
|
<TERM>
|
|
<ReturnValue>ERROR: removeUser: user "<replaceable class="parameter">username</replaceable>" does not exist.</ReturnValue>
|
|
</TERM>
|
|
<LISTITEM>
|
|
<PARA>
|
|
This message occurs if the username is not found.
|
|
</PARA>
|
|
</LISTITEM>
|
|
</VARLISTENTRY>
|
|
</VARIABLELIST>
|
|
</para>
|
|
</REFSECT2>
|
|
</REFSYNOPSISDIV>
|
|
|
|
<REFSECT1 ID="R1-SQL-DROPUSER-1">
|
|
<REFSECT1INFO>
|
|
<DATE>1998-09-22</DATE>
|
|
</REFSECT1INFO>
|
|
<TITLE>
|
|
Description
|
|
</TITLE>
|
|
<PARA>
|
|
<command>DROP USER</command> removes the specified
|
|
user from the database,
|
|
along with any databases owned by the user. It
|
|
does not remove tables, views, or triggers owned by the
|
|
named user in databases not owned by the user. This statement
|
|
can be used in place of the <application>destroyuser</application>
|
|
script, regardless of how the user was created.
|
|
</PARA>
|
|
|
|
<REFSECT2 ID="R2-SQL-DROPUSER-3">
|
|
<REFSECT2INFO>
|
|
<DATE>1998-09-22</DATE>
|
|
</REFSECT2INFO>
|
|
<TITLE>
|
|
Notes
|
|
</TITLE>
|
|
<PARA>
|
|
<command>DROP USER</command> is a <productname>Postgres</productname>
|
|
language extension.
|
|
</PARA>
|
|
<PARA>
|
|
Refer to <command>CREATE USER</command> and
|
|
<command>ALTER USER</command> for information on
|
|
how to create or modify user accounts.
|
|
</PARA>
|
|
</REFSECT2>
|
|
</refsect1>
|
|
|
|
<REFSECT1 ID="R1-SQL-DROPUSER-2">
|
|
<TITLE>
|
|
Usage
|
|
</TITLE>
|
|
<PARA>
|
|
To drop a user account:
|
|
</PARA>
|
|
<ProgramListing>
|
|
DROP USER Jonathan;
|
|
</ProgramListing>
|
|
</REFSECT1>
|
|
|
|
<REFSECT1 ID="R1-SQL-DROPUSER-3">
|
|
<TITLE>
|
|
Compatibility
|
|
</TITLE>
|
|
<PARA>
|
|
</PARA>
|
|
|
|
<REFSECT2 ID="R2-SQL-DROPUSER-4">
|
|
<REFSECT2INFO>
|
|
<DATE>1998-09-22</DATE>
|
|
</REFSECT2INFO>
|
|
<TITLE>
|
|
SQL92
|
|
</TITLE>
|
|
<PARA>
|
|
There is no <command>DROP USER</command> in <acronym>SQL92</acronym>.
|
|
</PARA>
|
|
</refsect2>
|
|
</refsect1>
|
|
</REFENTRY>
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../reference.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:"/usr/lib/sgml/catalog"
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
-->
|