创建表,表名,列族
create 'scores','grade','course'
查询所有的表名
list
查看描述信息
describe 'scores'
插入数据
put 'scores','Tome','grade','5'
put 'scores','Tome','course:art','20'
put 'scores','Tome','course:englist','80'
put 'scores','Tome','course:math','90'
put 'scores','Jim','grade','2'
put 'scores','Jim','course:java','93'
put 'scores','Jim','course:chain','72'
put 'scores','Jim','course:chain','74'
put 'scores','Jim','course:chain','75'
put 'scores','Jim','course:chain','76'
查询数据
get 'scores','Tome'
全表扫描
scan 'scores'
查询并通过版本号
get 'scores','Jim',{COLUMN=>'course:chain',VERSION=>3}
查询单个列族的数据
scan'scores',{COLUMNS => 'course'}
修改表信息
alter 'scores',{NAME=>'coures:chain',VERSIONS => 3}
删除数据
deleteall 'scores','Jim'
禁用表,删除表
disables 'scores'
drop 'scores'