1.1.1 数据插入
功能
1.   insert into  
2.     < tableName > (attr1, attr2)  
3.   values  
4.     (value1-1, value2-1),(value1-2, value2-2)  
注:
1.
2.
1.1.1.1 insert into select语法
功能:将select结果直接入库
示例:
1.
2.
3.
1.1.1.2 create table as select 语法
功能:创建结果表,将select结果入库
示例:
1.
2.
3.
1.1.2 视图存储入库
1.   store view <viewName> to table <tableName>    
1.1.3 数据下载
1.   --最近执行结果的下载  
2.   download   
1.1.4 数据导出
1.1.4.1 数据导出HBase中
1.   LOAD JUST:test_table to hbase:test_load  
2.       Config {  
3.           __key__: "concat(pid,time)",  
4.           cf.pid: "pid",  
5.           cf.time: "from_timestamp(time)",  
6.           cf.lng: "st_x(gps_point)",  
7.           cf.lat: "st_y(gps_point)"  
8.       }  
1.1.4.2 数据下载到HDFS中 
1.   LOAD JUST:test_table to hdfs:"/just_test_load/test_load"  
2.       Config {  
3.           pid: "pid",  
4.           time: "from_timestamp(time)",  
5.           lng: "st_x(gps_point)",  
6.           lat: "st_y(gps_point)"  
7.       }  
1.1.4.3 数据导出MySQL中







 
  
  924浏览
924浏览
      

 
  
  
  
 