Database Reference
In-Depth Information
foracommandgroup,issuethe help commandfollowedbythegroupname
in quotation marks. For example, Figure 7.2 shows the help for the DDL
command group (only the Alter command is showing).
Figure 7.2 Listing help for the DDL command group.
To create a basic table named Stocks with a column family named Price and
one named Trade, enter the following code at the command prompt:
create 'Stocks', 'Price','Trade'
To verify that the table has been created, you can use the describe
command:
describe 'Stocks'
Figure 7.3 shows the output describing the table attributes.
 
 
 
Search WWH ::




Custom Search