- Learning Apache Cassandra(Second Edition)
- Sandeep Yarabarla
- 102字
- 2021-07-03 00:19:27
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).
推薦閱讀
- 大學計算機信息技術導論
- 精通MATLAB神經網絡
- TestStand工業自動化測試管理(典藏版)
- Expert AWS Development
- 電腦上網直通車
- Embedded Programming with Modern C++ Cookbook
- Windows 7寶典
- C語言開發技術詳解
- INSTANT Autodesk Revit 2013 Customization with .NET How-to
- 網絡布線與小型局域網搭建
- 基于Xilinx ISE的FPAG/CPLD設計與應用
- 智能鼠原理與制作(進階篇)
- 機床電氣控制與PLC
- 大數據素質讀本
- Microsoft System Center Data Protection Manager Cookbook