官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 徐汇区| 望谟县| 安宁市| 百色市| 洪雅县| 乌海市| 金秀| 沽源县| 陈巴尔虎旗| 沙雅县| 通海县| 宣威市| 新宁县| 泰顺县| 海盐县| 旬阳县| 中方县| 白水县| 华坪县| 盖州市| 玉树县| 淮滨县| 车致| 三都| 阳新县| 南宫市| 桂东县| 任丘市| 孟州市| 友谊县| 汉寿县| 台北县| 尼勒克县| 绥德县| 乌兰察布市| 大悟县| 黑水县| 剑川县| 竹北市| 阿瓦提县| 桂阳县|