⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 create_user.sgml

📁 PostgreSQL 8.1.4的源码 适用于Linux下的开源数据库系统
💻 SGML
字号:
<!--$PostgreSQL: pgsql/doc/src/sgml/ref/create_user.sgml,v 1.38 2005/07/31 17:19:17 tgl Exp $PostgreSQL documentation--><refentry id="SQL-CREATEUSER"> <refmeta>  <refentrytitle id="sql-createuser-title">CREATE USER</refentrytitle>  <refmiscinfo>SQL - Language Statements</refmiscinfo> </refmeta> <refnamediv>  <refname>CREATE USER</refname>  <refpurpose>define a new database role</refpurpose> </refnamediv> <indexterm zone="sql-createuser">  <primary>CREATE USER</primary> </indexterm> <refsynopsisdiv><synopsis>CREATE USER <replaceable class="PARAMETER">name</replaceable> [ [ WITH ] <replaceable class="PARAMETER">option</replaceable> [ ... ] ]where <replaceable class="PARAMETER">option</replaceable> can be:          SUPERUSER | NOSUPERUSER    | CREATEDB | NOCREATEDB    | CREATEROLE | NOCREATEROLE    | CREATEUSER | NOCREATEUSER    | INHERIT | NOINHERIT    | LOGIN | NOLOGIN    | CONNECTION LIMIT <replaceable class="PARAMETER">connlimit</replaceable>    | [ ENCRYPTED | UNENCRYPTED ] PASSWORD '<replaceable class="PARAMETER">password</replaceable>'    | VALID UNTIL '<replaceable class="PARAMETER">timestamp</replaceable>'     | IN ROLE <replaceable class="PARAMETER">rolename</replaceable> [, ...]    | IN GROUP <replaceable class="PARAMETER">rolename</replaceable> [, ...]    | ROLE <replaceable class="PARAMETER">rolename</replaceable> [, ...]    | ADMIN <replaceable class="PARAMETER">rolename</replaceable> [, ...]    | USER <replaceable class="PARAMETER">rolename</replaceable> [, ...]    | SYSID <replaceable class="PARAMETER">uid</replaceable> </synopsis> </refsynopsisdiv> <refsect1>  <title>Description</title>  <para>   <command>CREATE USER</command> is now an alias for   <xref linkend="sql-createrole" endterm="sql-createrole-title">,   which see for more information.   The only difference is that when the command is spelled   <command>CREATE USER</command>, <literal>LOGIN</> is assumed   by default, whereas <literal>NOLOGIN</> is assumed when   the command is spelled   <command>CREATE ROLE</command>.  </para> </refsect1>  <refsect1>  <title>Compatibility</title>    <para>   The <command>CREATE USER</command> statement is a   <productname>PostgreSQL</productname> extension.  The SQL standard   leaves the definition of users to the implementation.  </para> </refsect1> <refsect1>  <title>See Also</title>  <simplelist type="inline">   <member><xref linkend="sql-createrole" endterm="sql-createrole-title"></member>  </simplelist> </refsect1></refentry><!-- Keep this comment at the end of the fileLocal variables:mode: sgmlsgml-omittag:nilsgml-shorttag:tsgml-minimize-attributes:nilsgml-always-quote-attributes:tsgml-indent-step:1sgml-indent-data:tsgml-parent-document:nilsgml-default-dtd-file:"../reference.ced"sgml-exposed-tags:nilsgml-local-catalogs:"/usr/lib/sgml/catalog"sgml-local-ecat-files:nilEnd:-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -