Professional Documents
Culture Documents
*******************************************************************************Cass
andra Install************************************************************
//cassandra
//
***********************************************************************************
***********************************cassandra queries
//create db
====> CREATE KEYSPACE school_db WITH replication = {'class': 'SimpleStrategy',
'replication_factor': '1'} AND durable_writes = 'true';
//switch to db
====> USE school_db ;
// drop a table
DROP TABLE students ;
//*********************************************************************************
*********************************************** Alter table for one to one
//*********************************************************************************
*********************************************** Alter table for one to many
//*********************************************************************************
*********************************************** Alter table for one to many second
time
//alter table for one to many
====> ALTER TABLE students ADD teachers map<text, frozen<teacher>>;
====> DESC TYPES;