本人运行总结,参考自
删除表:disable 'emp'; drop 'emp'创建表:create 'emp', 'personal', 'professional'查看表:list表的说明:describe 'emp' //desc 'emp'改变列家族单元的最大数目:alter 'emp', NAME => 'personal', VERSIONS => 5创建数据:put 'emp','1','personal:name','raju'put 'emp','1','personal:city','hyderabad'put 'emp','1','professional:designation','manager'put 'emp','1','professional:salary','50000'put 'emp','2','personal:name','raju2'put 'emp','2','personal:city','hyderabad2'put 'emp','2','professional:designation','manager2'put 'emp','2','professional:salary','500002'更新数据:(第二个参数是row number)put 'emp','1','personal:city','ChengDu'扫描表:scan 'emp'scan 'emp',{LIMIT=>1} 注意大小写LIMIT读取数据:get 'emp','2'get 'emp','2',{COLUMN=>'personal:name'}删除数据:deleteall 'emp','2'delete ‘’, ‘
’, ‘
附: