IT Log
Show 본문
728x90
반응형
Show Databases
SHOW (DATABASES|SCHEMAS) [LIKE 'identifier_with_wildcards'];
Show Tables/Views/Materialized Views/Partitions
-- Show Tables
SHOW TABLES [IN database_name] ['identifier_with_wildcards'];
-- Show Views
SHOW VIEWS [IN/FROM database_name] [LIKE 'pattern_with_wildcards'];
-- Show Materialized Views
SHOW MATERIALIZED VIEWS [IN/FROM database_name] [LIKE 'pattern_with_wildcards'];
-- Show Partitions
SHOW PARTITIONS [db_name.]table_name [PARTITION(partition_spec)];
-- Show Table/Partition Extended
SHOW TABLE EXTENDED [IN|FROM database_name] LIKE 'identifier_with_wildcards' [PARTITION(partition_spec)];
Show Columns
SHOW COLUMNS (FROM|IN) table_name [(FROM|IN) db_name];
728x90
반응형
'SQL > Hive(HiveQL)' 카테고리의 다른 글
CREATE/DROP/TRUNCATE TABLE (0) | 2021.03.24 |
---|---|
CREATE/DROP/ALTER DATABASE (0) | 2021.03.24 |
ALTER TABLE/COLUMN & PARTITION (0) | 2021.03.24 |
SELECT (0) | 2021.03.24 |
Comments