orc存儲的表默認保存文件數和文件大小,textfile存儲的保存數據條數
select * from TBLS where TBL_NAME='tablename';
select * from TABLE_PARAMS where TBL_ID='111';
select * from PARTITIONS where tbl_id=111;
select * from PARTITION_PARAMS where part_id=222;
orc存儲的表默認保存文件數和文件大小,textfile存儲的保存數據條數
select * from TBLS where TBL_NAME='tablename';
select * from TABLE_PARAMS where TBL_ID='111';
select * from PARTITIONS where tbl_id=111;
select * from PARTITION_PARAMS where part_id=222;
SELECT unix_timestamp(from_unixtime(unix_timestamp(),'yyyy-MM-dd 00:00:00')); 獲取當天0點開始的時間戳
--01建數據庫 CREATE DATABASE IF NOT EXISTS DATABASE_NAME; --02查詢數據庫 SHOW DATAB