Details
-
Bug
-
Resolution: Fixed
-
None
-
*Location*: http://developer.couchbase.com/documentation/server/4.1/n1ql/n1ql-language-reference/insert.html
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
*Screen Resolution*: 1440 x 900
Description
Docs contain an example of INSERT VALUE, but not INSERT SELECT.
This would be helpful as it's not immediately obvious what the syntax is, for example:
INSERT INTO `newBucket` (KEY id, VALUE name) SELECT meta().id AS id, name FROM `beer-sample`;
|
and, showing how to form correct JSON in the new document:
INSERT INTO `newBucket` (KEY id, VALUE {"name":name}) SELECT meta().id AS id, name FROM `beer-sample`;
|
Attachments
1.
|
Port the changes to 4.1 | Closed | Simon Dew |