- Learning Apache Cassandra(Second Edition)
- Sandeep Yarabarla
- 96字
- 2021-07-03 00:19:27
Inserting and reading data
To insert data into the table, run the following command:
INSERT INTO personal_info (id, name, dob) VALUES ( 1 , 'Alice' , '02-25-1954' );
This will insert a record for a user named Alice whose date of birth is 02-25-1954 and has been assigned the id 1. To read the data from the table, run the following query:
SELECT * FROM personal_info WHERE id = 1;
You should get an output that looks like this:
Voila! You have created your first keyspace and table, inserted a record, and queried the record back.
推薦閱讀
- Mastering Matplotlib 2.x
- AWS:Security Best Practices on AWS
- 現代機械運動控制技術
- JSF2和RichFaces4使用指南
- 西門子變頻器技術入門及實踐
- FPGA/CPLD應用技術(Verilog語言版)
- 基于企業網站的顧客感知服務質量評價理論模型與實證研究
- R Machine Learning Projects
- Learning ServiceNow
- Mastering Exploratory Analysis with pandas
- 寒江獨釣:Windows內核安全編程
- 空間機器人
- Unreal Development Kit Game Design Cookbook
- 設計模式
- 大數據:從基礎理論到最佳實踐