mirror of
https://github.com/apache/impala.git
synced 2025-12-19 09:58:28 -05:00
Updated all the associated topics. Change-Id: Id4c5e9aa4d060ceaa426908a444d280a5564749d Reviewed-on: http://gerrit.cloudera.org:8080/17469 Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Reviewed-by: Joe McDonnell <joemcdonnell@cloudera.com>
79 lines
2.5 KiB
XML
79 lines
2.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
|
|
<concept rev="3.1 IMPALA-7016" id="alter_database">
|
|
|
|
<title>ALTER DATABASE Statement</title>
|
|
|
|
<titlealts audience="PDF">
|
|
|
|
<navtitle>ALTER DATABASE</navtitle>
|
|
|
|
</titlealts>
|
|
|
|
<prolog>
|
|
<metadata>
|
|
<data name="Category" value="Impala"/>
|
|
<data name="Category" value="SQL"/>
|
|
<data name="Category" value="DDL"/>
|
|
<data name="Category" value="Databases"/>
|
|
<data name="Category" value="Schemas"/>
|
|
<data name="Category" value="Developers"/>
|
|
<data name="Category" value="Data Analysts"/>
|
|
</metadata>
|
|
</prolog>
|
|
|
|
<conbody>
|
|
|
|
<p>
|
|
The <codeph>ALTER DATABASE</codeph> statement changes the characteristics of a database.
|
|
</p>
|
|
|
|
<p>
|
|
Use the <codeph>SET OWNER</codeph> clause to transfer the ownership of the database from
|
|
the current owner to another user or a role.
|
|
</p>
|
|
|
|
<p>
|
|
The database owner is originally set to the user who creates the database. The term
|
|
<codeph>OWNER</codeph> is used to differentiate between the <codeph>ALL</codeph>
|
|
privilege that is explicitly granted via the <codeph>GRANT</codeph> statement
|
|
and a privilege that is implicitly granted by the <codeph>CREATE DATABASE</codeph>
|
|
statement.
|
|
</p>
|
|
|
|
<p conref="../shared/impala_common.xml#common/syntax_blurb"/>
|
|
|
|
<codeblock>
|
|
ALTER DATABASE <varname>database_name</varname> SET OWNER USER user_name;
|
|
</codeblock>
|
|
|
|
<p conref="../shared/impala_common.xml#common/ddl_blurb"/>
|
|
|
|
<p conref="../shared/impala_common.xml#common/cancel_blurb_no"/>
|
|
|
|
<p>
|
|
<b>Added in:</b> <keyword keyref="impala31_full"/>
|
|
</p>
|
|
|
|
</conbody>
|
|
|
|
</concept>
|