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

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.

主站蜘蛛池模板: 武夷山市| 石城县| 曲靖市| 石河子市| 旅游| 邮箱| 车险| 天全县| 玛曲县| 华宁县| 德保县| 宁陵县| 荆门市| 蚌埠市| 定兴县| 修水县| 台安县| 佛学| 江陵县| 肇源县| 昌图县| 海安县| 阿拉善左旗| 克什克腾旗| 德阳市| 逊克县| 勃利县| 桐梓县| 福州市| 合水县| 阿坝县| 额敏县| 金山区| 朔州市| 德州市| 华蓥市| 青河县| 阳泉市| 辽阳市| 黄大仙区| 莱州市|