"Mysql/hive/redis"의 두 판 사이의 차이
ph
잔글 (Admin님이 Mysql/hive 문서를 Mysql/hive/redis 문서로 이동했습니다) |
|
(차이 없음)
|
2017년 5월 8일 (월) 15:41 판
Rename table
ALTER TABLE table_name RENAME TO new_table_name;
Mysql
Create user
CREATE USER 'newuser'@'localhost' IDENTIFIED BY ‘password'; GRANT ALL PRIVILEGES ON * . * TO 'newuser'@‘localhost'; FLUSH PRIVILEGES;
DROP USER ‘demo’@‘localhost’;
HIVE
Hive Tutorial
view partitions
show partitions table;
http://stackoverflow.com/q/15616290/766330
특정 partition만을 대상으로 조회하는 특별한 쿼리는 없다. 파티션 정보를 where에 넣으면 hive가 자동으로 알아서 하는 것으로 보임. ref. how to select data from hive with specific partition?