n1ql

    0熱度

    1回答

    SELECT * FROM myBucket WHERE ANY x IN transactions SATISFIES x.type in [0,4] END; 結果: { "_type": "Company", "created": "2015-12-01T18:30:00.000Z", "transactions": [ { "amou

    1熱度

    1回答

    鍵值我有這樣的疑問: select otherDocKey from bucket use keys '1234' update bucket use keys 'hear I need the result of the first query' set ... 我想要做這樣的事情: update bucket use keys (select otherDocKey from bucke

    0熱度

    2回答

    我想象下面查詢 SELECT round(sum (ARRAY_SUM(case when ANY x IN transactions SATISFIES x.type` `in [0,4] then transactions[*].amount else 0 end))),2) total_income,_type` `FROM mybucket WHERE _type='Company'

    1熱度

    1回答

    RecordModel.getAll = function(callback){ var statement = 'SELECT META(users).id,firstname,lastname,email FROM default AS users'; var query= N1qlQuery.fromString(statement).consistency(N1qlQu

    1熱度

    2回答

    來自mongoDB 5年,現在只是研究/嘗試Couchbase。我有一個測試數據,我想按城市分組,並將所有main.temp值收集/推送到一個字段。這可以在MongoDB中聚集由$push或$addToSet 測試數據來完成 { "city": "a", "main": { temp: 1 } }, { "city": "a", "

    1熱度

    2回答

    我嘗試運行此查詢 delete from bucket o use keys (select raw ARRAY_CONCAT(ARRAY_CONCAT(ARRAY_CONCAT(d, t), s), u) from bucket use keys 'SS') 我得到這樣的迴應: { "status": "Unexpected server error" } 在服務器日誌

    0熱度

    1回答

    我想在N1QL中添加5小時30分鐘的時間。我該怎麼做 ? 我有時間喜歡2016-04-03T18:30:00.000Z我需要添加5:30。

    1熱度

    1回答

    我JSON像下面 { "_type": "Usage", "bids": [ { "bid": 0.015, "clicks": 13, "endTime": "2016-06-01T00:31:39.000Z", }, { "bid": 0.023, "clicks": 1731,

    1熱度

    1回答

    我想在使用更新查詢的N1QL中將「UpdatedFromIP」更改爲「IP」? 我想爲所有的json做到這一點。其中_type =「日誌」 { "UpdatedFromIP": "1.0.0.166", "_type": "log", "updatedBy": 529 }

    1熱度

    1回答

    我想將數據遷移到MySQL到Couchbase。 我使用_id = UUID導入公司。 現在我想導入與公司相關的其他數據。我需要_id公司進入新的導入,但是當我在一個循環中運行N1Ql查詢來查找相關數據時,它顯示如下錯誤。 Error: An unknown N1QL error occured. This is usually related to an out-of-memory condi