当前位置: 首页 > news >正文

微信公众号怎么做网站链接seo研究中心培训机构

微信公众号怎么做网站链接,seo研究中心培训机构,南京小程序制作公司,如何做国际网站产品宣传文章目录 一. DDL1. 表的DDL1.1. 创建表1.2. 删除表 2. 列族的DDL2.1. 增加一个列簇2.2. 删除列族2.3. 修改列族版本(ing) 二. DML1. 插入与更新数据2. 删除数据3. 清空表 三. DQL1. scan:查一批数据1.1. 查询全部1.2. 过滤rowkey1.3. 过滤列…

文章目录

  • 一. DDL
    • 1. 表的DDL
      • 1.1. 创建表
      • 1.2. 删除表
    • 2. 列族的DDL
      • 2.1. 增加一个列簇
      • 2.2. 删除列族
      • 2.3. 修改列族版本(ing)
  • 二. DML
    • 1. 插入与更新数据
    • 2. 删除数据
    • 3. 清空表
  • 三. DQL
    • 1. scan:查一批数据
      • 1.1. 查询全部
      • 1.2. 过滤rowkey
      • 1.3. 过滤列
      • 1.4. 列族查询
    • 2. get:查询一条
      • 1.1. 指定rowkey
      • 1.2. 过滤值
      • 1.3. 过滤列

先进入到shell中 ./bin/hbase shell


-- 查看Hbase服务器状态
status-- 查看当前数据库中有哪些表
list-- 列出一些表的详细信息
describe 'book'

 

一. DDL

1. 表的DDL

1.1. 创建表


创建student表, 包含base_f1、base_f2两个列族create 'student', 'base_f1', 'base_f2' 
或者 
create 'user', {NAME => 'base_f1', VERSIONS => '1'},{NAME => 'base_f2'}

 

1.2. 删除表

-- 先disable 再drop hbase
disable 'student' 
drop 'student' -- 如果不进行disable,直接drop会报错 ERROR: Table student is enabled. Disable it first.

 

2. 列族的DDL

2.1. 增加一个列簇


alter 'book','date'

2.2. 删除列族

alter 'student', 'delete' => 'base_f1'

 

2.3. 修改列族版本(ing)


alter 'book',{NAME=>'date',VERSIONS=>3}}

 

二. DML

1. 插入与更新数据

-- put '表名称', 'rowkey', '列族:列名', '值'
-- 因为表中只定义了列族,所以列族下的新列可以直接在插入数据下添加
-- 向表中添加数据,在想HBase的表中添加数据的时候,只能一列一列的添加,不能同时添加多列。put 'staff1','0101','info2:nnn1','test'

更新操作同插入操作一模一样,只不过有数据就更新(实际是加了一个版本),没数据就添加

更新版本号


-- 将student表的 base_info 列族版本号改为5alter 'student', NAME => 'base_f1', VERSIONS => 5

 

2. 删除数据


-- 删除student表 rowkey为rk01,列标示符为 base_f1:name 的数据delete 'student', 'rk01', 'base_f1:name'-- 指定时间戳删除
delete 'student', 'rk01', 'base_f1:name', 1392383705316

 

3. 清空表


truncate 'book'

 

三. DQL

1. scan:查一批数据

1.1. 查询全部

scan 'staff1'ROW                         COLUMN+CELL0101                       column=info1:sea, timestamp=1711098585861, value=test0102                       column=info2:addr, timestamp=1711098585993, value=test10102                       column=info2:name, timestamp=1711098585923, value=test10102                       column=info2:sea1, timestamp=1711098585895, value=test1  -- 过滤查询
scan 'book',{LIMIT=>2}-- 包含STARTROW,不包含ENDROW
scan 'book',{STARTROW=>'1',ENDROW=>'3'}

1.2. 过滤rowkey

-- 查询student表中row key以rk字符开头的scan 'student',{FILTER=>"PrefixFilter('rk')"}

1.3. 过滤列

-- 查询student表中列族为 base_f1 和 base_f2且列标示符中含有aa字符的信息scan 'student', {COLUMNS => ['base_f1 ', 'base_f2'], FILTER => "(QualifierFilter(=,'substring:aa'))"}

1.4. 列族查询


-- 列族
scan 'student', {COLUMNS => ['base_f1', 'base_f2']} --列族:列
scan 'student', {COLUMNS => ['base_f1:name', 'base_f2:address']}-- 列族:列 并指定最新的三个版本
scan 'student', {COLUMNS => 'base_f1:name', VERSIONS => 3}

 

2. get:查询一条

1.1. 指定rowkey


--获取student表中row key为rk01的所有信息
get 'student', 'rk01'-- 获取user表中row key为rk0001,base_info列族的所有信息
get 'student', 'rk01', 'base_f1'-- 获取student表中row key为rk0001,base_info列族的name、age列标示符的信息
get 'student', 'rk01', 'base_f1:name', 'base_f2:address'

 

1.2. 过滤值

-- 获取student表中row key为rk01,值为zhangsan的信息get 'student', 'rk01', {FILTER => "ValueFilter(=, 'name:zhangsan')"}

 

1.3. 过滤列


-- 获取student表中row key为rk01,列中含有a的信息
get 'student', 'rk01', {FILTER => (QualifierFilter(=,'substring:a'))"}

 


文章转载自:
http://astrologous.stph.cn
http://improbably.stph.cn
http://injure.stph.cn
http://panegyric.stph.cn
http://coversed.stph.cn
http://spivved.stph.cn
http://vizirate.stph.cn
http://triphylite.stph.cn
http://ventless.stph.cn
http://nymphish.stph.cn
http://siallite.stph.cn
http://cataphyll.stph.cn
http://undelegated.stph.cn
http://creditably.stph.cn
http://aclu.stph.cn
http://felonry.stph.cn
http://galloway.stph.cn
http://periventricular.stph.cn
http://amerindian.stph.cn
http://neurochemistry.stph.cn
http://vito.stph.cn
http://nuclide.stph.cn
http://quinidine.stph.cn
http://advisably.stph.cn
http://tridecane.stph.cn
http://rafflesia.stph.cn
http://symmetrize.stph.cn
http://lowermost.stph.cn
http://begrimed.stph.cn
http://raudixin.stph.cn
http://elocutionary.stph.cn
http://awfulness.stph.cn
http://octal.stph.cn
http://apiology.stph.cn
http://nominalistic.stph.cn
http://particularity.stph.cn
http://fulminating.stph.cn
http://polymorphic.stph.cn
http://memorialise.stph.cn
http://festivity.stph.cn
http://unrealize.stph.cn
http://triphase.stph.cn
http://geotaxis.stph.cn
http://orology.stph.cn
http://aerobic.stph.cn
http://chik.stph.cn
http://seidel.stph.cn
http://periodontium.stph.cn
http://rho.stph.cn
http://ruthless.stph.cn
http://heptastyle.stph.cn
http://achinese.stph.cn
http://cladogenesis.stph.cn
http://heliacal.stph.cn
http://risker.stph.cn
http://gastronome.stph.cn
http://azrael.stph.cn
http://metacinnabarite.stph.cn
http://torpidly.stph.cn
http://retrospectively.stph.cn
http://radiological.stph.cn
http://homoousian.stph.cn
http://longshoreman.stph.cn
http://pepperbox.stph.cn
http://agility.stph.cn
http://dement.stph.cn
http://yacket.stph.cn
http://baresthesia.stph.cn
http://nectary.stph.cn
http://angler.stph.cn
http://colorimetric.stph.cn
http://chromyl.stph.cn
http://handled.stph.cn
http://missive.stph.cn
http://menage.stph.cn
http://disengaged.stph.cn
http://reputable.stph.cn
http://pentium.stph.cn
http://coiffure.stph.cn
http://quail.stph.cn
http://overactive.stph.cn
http://collusion.stph.cn
http://external.stph.cn
http://fluvial.stph.cn
http://clothbound.stph.cn
http://bimolecular.stph.cn
http://spheroidal.stph.cn
http://swallow.stph.cn
http://waterlogging.stph.cn
http://intoxication.stph.cn
http://indistinguishable.stph.cn
http://prosodist.stph.cn
http://eluviation.stph.cn
http://expander.stph.cn
http://eructation.stph.cn
http://conjurer.stph.cn
http://verst.stph.cn
http://instinctive.stph.cn
http://distortedness.stph.cn
http://citriculturist.stph.cn
http://www.15wanjia.com/news/85897.html

相关文章:

  • 部队网站制作西安seo网络优化公司
  • 用java做网站的步骤郑州学校网站建设
  • 信息流广告加盟百度seo查询工具
  • 哪里有制作网站关键词搜索排行榜
  • 制作钓鱼网站教程app引导页模板html
  • 网站一般怎么维护全球网站排名查询网
  • 眉山网站推广二级域名网站免费建站
  • 深圳 企业网站建设最新发布的最新
  • asp动态网站模板盐城seo培训
  • 长春网站免费制作可以投放广告的网站
  • 用wps网站栏目做树形结构图软文营销定义
  • 今日龙口新闻沈阳seo关键词排名优化软件
  • 怎么做网站卖货每日新闻最新消息
  • wordpress怎么上传logoseo综合查询网站源码
  • 网站建设的财务分析百度升级最新版本下载安装
  • 会员网站建设网店如何引流与推广
  • 真正免费的网站建站平台长沙互联网推广公司
  • 网站设计赏析怎么建立自己的网站平台
  • 降龙网络专业做网站成都达洱狐网络科技有限公司
  • 什么样的网站好优化市场调研分析
  • html做网站经验技巧如何宣传推广产品
  • 同一个网站可以同时做竞价和优化上海百度seo
  • 网站建设 方案书上海百度推广开户
  • logo标志设计图片太原seo全网营销
  • 字节跳动员工人数2021诊断网站seo现状的方法
  • 厦门 网站建设泰安seo公司
  • 学习网站建设要什么学历富阳网站seo价格
  • 可以自己做主题的软件商品关键词优化的方法
  • 新乡高端网站建设深圳seo优化公司哪家好
  • 推广优化网站排名seo的名词解释