创建表结构:create ‘member’ ,’member_id’,’address’,’info’

描述表结构:desc ‘member’

删除列族:alter ‘member’,’delete’=>’member_id’

删除表结构:disable ‘member’, drop ‘member’

查看所有表结构:list

插入数据:

put ‘member’ ,’pk’,’info:age’,’28’

put ‘member’ ,’pk’,’info:birthday’,’1990-05-05′

put ‘member’,’pk’,’info:company’,’imooc网’

put ‘member’ ,’pk’,’address:country’,’CN’

put ‘member’,’pk’,’address:province’,’BJ’

put ‘member’,’pk’,’address:city’ ,’BJ’

 

put ‘member’ ,’jepson’,’info:age’,’27’

put ‘member’ ,’jepson’,’info:birthday’,’1997-05-05′

put ‘member’,’jepson’,’info:company’,’apple’

put ‘member’ ,’jepson’,’address:country’,’CN’

put ‘member’,’jepson’,’address:province’,’hz’

put ‘member’,’jepson’,’address:city’ ,’mudanqu’

 

信息查询:

get ‘member’,’jepson’

get ‘member’,’jepson’,’info’

get ‘member’,’jepson’,’info:age’

修改信息

put ‘member’,’pk’,’info:age’,’18’

删除信息

delete ‘member’ ,’pk’,’info:age’ 删除一列

deleteall ‘member’,’pk’ 删除一行

truncate ‘member’ 清空表格

发表评论

电子邮件地址不会被公开。 必填项已用*标注