NoSQL
반응형
-
[Cassandra] Tutorial #1DataBase/Cassandra 2021. 2. 9. 23:35
keyspace 조회 > DESC keyspaces keyspace 생성 (keyspace 이름: lab) > create keyspace lab with replication = {'class': 'SimpleStrategy', 'replication_factor':1}; lab keyspace 사용하기 > use lab; ## cqlsh 실행 cqlsh:lab> movies data로 DB 생성하기 Table 생성 > create table lab.movies (movie_id int primary key, title text, genres text); ## table 확인 > desc tables; Data 로드 > copy movies(movie_id, title, genres) from 'C:\..