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

Creating a table

Let's create a table within our users keyspace to store personal information. You can create a table by issuing the following command:

CREATE TABLE "personal_info" (id int PRIMARY KEY, name text, dob text);

I will be omitting cqlsh> in the text from now on. You should always run the commands after entering cqlsh.

So we created the table personal_info with three columns: id , which is a unique integer identifier for a user which also happens to be the primary key for this table, name, and dob (date of birth) columns which are text values (strings).

主站蜘蛛池模板: 临洮县| 康乐县| 呼图壁县| 威宁| 六枝特区| 且末县| 东乌| 昂仁县| 邵东县| 舒兰市| 赞皇县| 秦皇岛市| 天长市| 九龙县| 延庆县| 枣强县| 田东县| 育儿| 大化| 徐州市| 宁乡县| 樟树市| 颍上县| 闻喜县| 河南省| 板桥市| 贵德县| 霸州市| 元江| 抚远县| 新河县| 荥经县| 南澳县| 嘉荫县| 蕲春县| 昌平区| 文昌市| 瑞丽市| 余干县| 临海市| 章丘市|