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

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.

主站蜘蛛池模板: 青川县| 资溪县| 邵武市| 丹棱县| 渑池县| 迭部县| 体育| 阳高县| 贞丰县| 汝州市| 新闻| 常德市| 朔州市| 普安县| 原平市| 陵川县| 孙吴县| 那曲县| 龙胜| 六安市| 二连浩特市| 比如县| 崇州市| 灵石县| 渑池县| 江阴市| 福州市| 安义县| 偃师市| 吉水县| 宝清县| 本溪市| 通辽市| 法库县| 涞水县| 瑞安市| 博乐市| 辉南县| 桂林市| 鲁甸县| 东宁县|