0001 ---
0002 layout: global
0003 title: CREATE TABLE
0004 displayTitle: CREATE TABLE
0005 license: |
0006 Licensed to the Apache Software Foundation (ASF) under one or more
0007 contributor license agreements. See the NOTICE file distributed with
0008 this work for additional information regarding copyright ownership.
0009 The ASF licenses this file to You under the Apache License, Version 2.0
0010 (the "License"); you may not use this file except in compliance with
0011 the License. You may obtain a copy of the License at
0012
0013 http://www.apache.org/licenses/LICENSE-2.0
0014
0015 Unless required by applicable law or agreed to in writing, software
0016 distributed under the License is distributed on an "AS IS" BASIS,
0017 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0018 See the License for the specific language governing permissions and
0019 limitations under the License.
0020 ---
0021
0022 ### Description
0023
0024 `CREATE TABLE` statement is used to define a table in an existing database.
0025
0026 The CREATE statements:
0027
0028 * [CREATE TABLE USING DATA_SOURCE](sql-ref-syntax-ddl-create-table-datasource.html)
0029 * [CREATE TABLE USING HIVE FORMAT](sql-ref-syntax-ddl-create-table-hiveformat.html)
0030 * [CREATE TABLE LIKE](sql-ref-syntax-ddl-create-table-like.html)
0031
0032 ### Related Statements
0033
0034 * [ALTER TABLE](sql-ref-syntax-ddl-alter-table.html)
0035 * [DROP TABLE](sql-ref-syntax-ddl-drop-table.html)