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

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).

主站蜘蛛池模板: 承德县| 文安县| 锡林郭勒盟| 托克逊县| 上林县| 朝阳区| 富蕴县| 会理县| 石阡县| 湖南省| 阿巴嘎旗| 高州市| 诸暨市| 波密县| 沈阳市| 延川县| 安多县| 宁晋县| 普宁市| 罗江县| 万年县| 郁南县| 祁东县| 新巴尔虎左旗| 泸西县| 竹北市| 五原县| 南召县| 台江县| 犍为县| 临潭县| 田东县| 盐边县| 大连市| 星座| 海南省| 吴江市| 元朗区| 伊吾县| 会昌县| 山阳县|