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

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

主站蜘蛛池模板: 栾城县| 灵山县| 石屏县| 荔浦县| 乾安县| 宣汉县| 商洛市| 绍兴市| 毕节市| 德惠市| 榆树市| 政和县| 崇阳县| 延川县| 敖汉旗| 建宁县| 岳池县| 方正县| 当阳市| 沙坪坝区| 靖安县| 青冈县| 镇安县| 兴安县| 平安县| 广宗县| 黎川县| 浮梁县| 白朗县| 江门市| 崇仁县| 原平市| 银川市| 海口市| 固镇县| 天气| 革吉县| 钟祥市| 仁化县| 永济市| 宣威市|