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

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.

主站蜘蛛池模板: 方城县| 襄樊市| 康定县| 获嘉县| 长宁县| 阿拉善右旗| 吐鲁番市| 乐亭县| 横山县| 阳朔县| 长岛县| 陵水| 潮州市| 宁陵县| 新巴尔虎左旗| 卓资县| 乐都县| 彭山县| 蒲城县| 扎鲁特旗| 崇义县| 安溪县| 和平县| 隆子县| SHOW| 赤水市| 昌乐县| 古丈县| 奉节县| 鄢陵县| 定襄县| 西昌市| 灵山县| 明溪县| 固阳县| 保定市| 武功县| 石狮市| 久治县| 清丰县| 太白县|