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

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.

主站蜘蛛池模板: 吉木乃县| 伊通| 南阳市| 西峡县| 澄江县| 察哈| 孝义市| 神池县| 宜黄县| 盱眙县| 溧水县| 望奎县| 庐江县| 鸡东县| 涡阳县| 正安县| 两当县| 吉木萨尔县| 寻乌县| 遵义县| 万州区| 灵山县| 遵义县| 济源市| 绥棱县| 桑日县| 星子县| 深水埗区| 石阡县| 萝北县| 临泉县| 金秀| 南部县| 襄樊市| 贵港市| 邯郸市| 莱阳市| 贵阳市| 伽师县| 通榆县| 江孜县|