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

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.

主站蜘蛛池模板: 军事| 元朗区| 沅陵县| 阜南县| 宁强县| 陵水| 台中县| 黄石市| 永州市| 天柱县| 白山市| 任丘市| 台南市| 贡觉县| 通州市| 乌兰察布市| 南昌县| 南安市| 呈贡县| 蕉岭县| 外汇| 珲春市| 林芝县| 亳州市| 昭平县| 周至县| 永吉县| 定南县| 剑河县| 金寨县| 蓬莱市| 台南县| 克拉玛依市| 永修县| 利辛县| 怀仁县| 镇江市| 祁阳县| 清新县| 尼玛县| 那曲县|