- 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.
推薦閱讀
- 現(xiàn)代測控系統(tǒng)典型應(yīng)用實(shí)例
- 大數(shù)據(jù)戰(zhàn)爭:人工智能時(shí)代不能不說的事
- 腦動(dòng)力:Linux指令速查效率手冊(cè)
- Google Cloud Platform Cookbook
- 工業(yè)機(jī)器人產(chǎn)品應(yīng)用實(shí)戰(zhàn)
- Python Artificial Intelligence Projects for Beginners
- 網(wǎng)頁編程技術(shù)
- 21天學(xué)通ASP.NET
- Maya 2012從入門到精通
- 讓每張照片都成為佳作的Photoshop后期技法
- Windows游戲程序設(shè)計(jì)基礎(chǔ)
- 嵌入式操作系統(tǒng)
- 步步圖解自動(dòng)化綜合技能
- Photoshop行業(yè)應(yīng)用基礎(chǔ)
- Windows安全指南