Mohammed Arif



Download 368.26 Kb.
Page11/12
Date27.12.2020
Size368.26 Kb.
#55517
1   ...   4   5   6   7   8   9   10   11   12
BIG DATA MODULE 5

PARTITION is optional.

Alter Table Statement


It is used to alter a table in Hive.

Syntax


The statement takes any of the following syntaxes based on what attributes we wish to modify in a table.


ALTER TABLE name RENAME TO new_name

ALTER TABLE name ADD COLUMNS (col_spec[, col_spec ...])

ALTER TABLE name DROP [COLUMN] column_name

ALTER TABLE name CHANGE column_name new_name new_type



ALTER TABLE name REPLACE COLUMNS (col_spec[, col_spec ...])


Drop Table Statement


DROP TABLE [IF EXISTS] table_name;

Hive - Built-in Operators


There are four types of operators in Hive:

  • Relational Operators

  • Arithmetic Operators

  • Logical Operators

  • Complex Operators

Download 368.26 Kb.

Share with your friends:
1   ...   4   5   6   7   8   9   10   11   12




The database is protected by copyright ©ininet.org 2024
send message

    Main page