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

Writing data does not yield feedback

If the INSERT statement worked, you should not see any response in the shell whatsoever; it should simply provide you with a new command prompt. This is not simply a quirk of the CQL shell, but a fundamental fact about writing data in Cassandra; writing data does not normally result in any information about the operation from the database, other than an error message if the write failed. Most client libraries will return a null value, or the equivalent in the language in question, when you perform a successful write query.

This may come as a surprise if you're used to working with an SQL database, which will typically give you a detailed feedback when you write data, such as returning the primary key of the new row or simply telling you how many rows were affected by the operation.

We'll see some exceptions to this rule when we explore lightweight transactions in Chapter 7, Expanding Your Data Model.

主站蜘蛛池模板: 隆回县| 奇台县| 石嘴山市| 宁陵县| 郎溪县| 固阳县| 沿河| 旺苍县| 龙山县| 辛集市| 邵阳市| 韶山市| 阿克陶县| 中江县| 芦溪县| 监利县| 霍邱县| 宜城市| 昌黎县| 阿合奇县| 南川市| 临湘市| 布尔津县| 抚远县| 盘锦市| 惠东县| 彰化县| 四会市| 息烽县| 康乐县| 鹤山市| 晋宁县| 隆尧县| 晋江市| 驻马店市| 临夏市| 六枝特区| 晋州市| 和田市| 桃江县| 科技|