Skip to content

Commit 7ef960b

Browse files
committed
updated review comments
1 parent 321cff9 commit 7ef960b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

docs/sql-ref-syntax-ddl-create-database.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,25 @@ CREATE {DATABASE | SCHEMA} [ IF NOT EXISTS ] database_name
4242
<dd>Path of the file system in which database to be created. If the specified path does not exist in the underlying file system, this command creates a directory with the path. If location is not specified, database will be created in default warehouse directory.</dd>
4343

4444
<dt><code><em>database_comment</em></code></dt>
45-
<dd>Description for the database.</dd>
45+
<dd>Specifies the description for the database.</dd>
4646

4747
<dt><code><em>WITH DBPROPERTIES (property_name=property_value [ , ...])</em></code></dt>
48-
<dd>Properties for the database in key-value pair.</dd>
48+
<dd>Specifies the properties for the database in key-value pair.</dd>
4949
</dl>
5050

5151
### Examples
5252
{% highlight sql %}
53-
-- Create database `customer_db`. This throws exception if database with name customer_db already exists.
53+
-- Create database `customer_db`. This throws exception if database with name customer_db
54+
-- already exists.
5455
CREATE DATABASE customer_db;
5556

5657
-- Create database `customer_db` only if database with same name doesn't exist.
5758
CREATE DATABASE IF NOT EXISTS customer_db;
5859

59-
-- Create database `customer_db` only if database with same name doesn't exist with `Comments`,`Specific Location` and `Database properties`.
60-
CREATE DATABASE IF NOT EXISTS customer_db COMMENT 'This is customer database' LOCATION '/user' WITH DBPROPERTIES (ID=001, Name='John');
60+
-- Create database `customer_db` only if database with same name doesn't exist with
61+
-- `Comments`,`Specific Location` and `Database properties`.
62+
CREATE DATABASE IF NOT EXISTS customer_db COMMENT 'This is customer database' LOCATION '/user'
63+
WITH DBPROPERTIES (ID=001, Name='John');
6164

6265
-- Verify that properties are set.
6366
DESCRIBE DATABASE EXTENDED customer_db;
@@ -73,4 +76,4 @@ DESCRIBE DATABASE EXTENDED customer_db;
7376

7477
### Related Statements
7578
- [DESCRIBE DATABASE](sql-ref-syntax-aux-describe-database.html)
76-
79+
- [DROP DATABASE](sql-ref-syntax-ddl-drop-database.html)

0 commit comments

Comments
 (0)