最近工作中有涉及到这两个数据源,我这边写一篇文章简略记录一下知识点。
create 'table name','column family'
table name:表名
column family:列族名
list
put 'table name','row1','column family:column name','value'
row1:行键(即Row Key)
column family:column name:列族名和列名
value:插入列的值
describe 'table name'
或
desc 'table name'
put 'table name','row','column family:column name':'new value'
//查看指定行的数据
get 'table name','row1'
show namespaces
show sets
show bins
select * from 命名空间[.表名 where PK='主键名']