{"id":2450,"date":"2016-12-08T15:15:00","date_gmt":"2016-12-08T15:15:00","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=2450"},"modified":"2025-10-09T07:27:34","modified_gmt":"2025-10-09T14:27:34","slug":"using-the-n1ql-returning-keyword-from-net-core","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/ko\/using-the-n1ql-returning-keyword-from-net-core\/","title":{"rendered":".NET Core\uc5d0\uc11c N1QL RETURNING \ud0a4\uc6cc\ub4dc \uc0ac\uc6a9"},"content":{"rendered":"<div id=\"preamble\">\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>\ucd5c\uadfc\uc5d0 RETURNING \ud0a4\uc6cc\ub4dc\uc5d0 \ub300\ud574 \uc54c\uac8c \ub418\uc5c8\uc2b5\ub2c8\ub2e4. <a href=\"https:\/\/www.couchbase.com\/blog\/ko\/products\/n1ql\/\">N1QL<\/a>. N1QL \ucffc\ub9ac \ub05d\uc5d0 \ucd94\uac00\ud558\uba74 \ud574\ub2f9 \ucffc\ub9ac\ub294 \uc791\uc5c5\ud55c \uacb0\uacfc \uc9d1\ud569\uc744 \ubc18\ud658\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4 UPDATE\ub97c \uc0ac\uc6a9\ud558\ub294\ub370 \ud574\ub2f9 \ucffc\ub9ac\uac00 10\uac1c\uc758 \ubb38\uc11c\ub97c \uc5c5\ub370\uc774\ud2b8\ud558\ub294 \uacbd\uc6b0 RETURNING\uc740 \ud574\ub2f9 10\uac1c\uc758 \ubb38\uc11c\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>.NET \ubc0f .NET Core\uc5d0\uc11c \uc774 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. <a href=\"https:\/\/www.couchbase.com\/blog\/ko\/developers\/?utm_source=blogs&amp;utm_medium=link&amp;utm_campaign=blogs\">\uce74\uc6b0\uce58\ubca0\uc774\uc2a4<\/a> \uc560\ud50c\ub9ac\ucf00\uc774\uc158.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"truebasic-setup\">\uae30\ubcf8 \uc124\uc815<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>\uc774 \ube14\ub85c\uadf8 \uac8c\uc2dc\ubb3c\uc740 \ub85c\uceec\uc5d0 Couchbase Server\uac00 \uc124\uc815\ub418\uc5b4 \uc788\uace0, \"default\"\ub77c\ub294 \ubc84\ud0b7\uc774 \uc0dd\uc131\ub418\uc5b4 \uc788\uc73c\uba70, \ucd5c\uc18c\ud55c \ud574\ub2f9 \ubc84\ud0b7\uc5d0 \uae30\ubcf8 \uc778\ub371\uc2a4\uac00 \uc0dd\uc131\ub418\uc5b4 \uc788\ub2e4\uace0 \uac00\uc815\ud569\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><em>\ucc38\uace0: Couchbase Server\ub97c \uc2dc\uc791\ud558\ub294 \ub370 \ubb38\uc81c\uac00 \uc788\uac70\ub098 \ud2b9\ud788 N1QL \uc778\ub371\uc2f1\uacfc \uad00\ub828\ud558\uc5ec \uc624\ub958\uac00 \ubc1c\uc0dd\ud558\ub294 \uacbd\uc6b0, '\uc2dc\uc791\ud558\uae30' \ube14\ub85c\uadf8 \uac8c\uc2dc\ubb3c\uc744 \ub2e4\uc2dc \uc0b4\ud3b4\ubcf4\ub294 \uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4:<\/em> <a href=\"https:\/\/www.couchbase.com\/blog\/ko\/couchbase-with-windows-and-.net---part-1\/\">\uc708\ub3c4\uc6b0\uc640 \uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \ud30c\ud2b8 1<\/a> <em>\uadf8\ub9ac\uace0<\/em> <a href=\"https:\/\/www.couchbase.com\/blog\/ko\/couchbase-with-windows-and-.net---part-2\/\">Windows\ub97c \uc0ac\uc6a9\ud55c \uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \ud30c\ud2b8 2<\/a> <em>\ud2b9\ud788<\/em>.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\uc800\ub294 \uac04\ub2e8\ud55c .NET Core \ucf58\uc194 \ud504\ub85c\uc81d\ud2b8\ub97c \uc0ac\uc6a9 \uc911\uc774\uba70, \uc5ec\uae30\uc5d0\ub294 \uc81c <a href=\"https:\/\/www.couchbase.com\/blog\/ko\/.net-core-with-visual-studio-code\/\">NET Core\uc640 \ube44\uc8fc\uc5bc \uc2a4\ud29c\ub514\uc624 \ucf54\ub4dc \ube14\ub85c\uadf8 \uac8c\uc2dc\ubb3c<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"truecoding-with-net-and-n1ql\">NET \ubc0f N1QL\uc744 \uc0ac\uc6a9\ud55c \ucf54\ub529<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>\uc774 \ucf54\ub4dc\uc758 \ub300\ubd80\ubd84\uc740 \uc774\uc804\uc5d0 .NET\uacfc Couchbase\ub97c \uc0ac\uc6a9\ud574 \ubcf8 \uc801\uc774 \uc788\ub2e4\uba74 \uaf64 \uc775\uc219\ud560 \uac83\uc785\ub2c8\ub2e4. \uc800\ub294 (\ucc98\uc74c\uc5d0) \ucc98\ub9ac\ub41c \ud544\ub4dc\uac00 \ub2e4\uc74c\uacfc \uac19\uc774 \uc124\uc815\ub41c 5\uac1c\uc758 \ubb38\uc11c\ub97c \ub9cc\ub4e4\uace0 \uc788\uc2b5\ub2c8\ub2e4. <code>false<\/code>. \uc544\ub798 \ucf54\ub4dc\ub294 \uc774\ub97c \uc0bd\uc785\ud569\ub2c8\ub2e4. \ub610\ud55c \uc608\uc2dc\ub97c \uc704\ud574 \ucf58\uc194\uc5d0 \uae30\ub85d\ud569\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlightjs highlight\"><code class=\"language-C#\">for(var i = 0;i &lt; 5; i++) {\r\n    var docKey = Guid.NewGuid().ToString();\r\n    var docContent = new {\r\n            foo = \"bar\",\r\n            type = \"example\",\r\n            processed = false,\r\n            dt = DateTime.Now\r\n    };\r\n    var docContentJson = JsonConvert.SerializeObject(docContent);\r\n    bucket.Insert(new Document {\r\n        Id = docKey,\r\n        Content = docContent\r\n    });\r\n\r\n    Console.WriteLine($\"Inserted: {docKey} - {docContentJson}\");\r\n}<\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\ub2e4\uc74c\uc73c\ub85c, \uc774 \ucf54\ub4dc\ub294 \uc989\uc2dc N1QL\uc744 \uc2e4\ud589\ud569\ub2c8\ub2e4. <code>\uc5c5\ub370\uc774\ud2b8<\/code> \ub97c \uc124\uc815\ud558\uc5ec \ubaa8\ub4e0 <code>\ucc98\ub9ac\ub428<\/code> \ud544\ub4dc\ub97c true\ub85c \uc124\uc815\ud569\ub2c8\ub2e4. \ub610\ud55c <code>\ubc18\ud658<\/code> \ubb38\uc744 \ucd94\uac00\ud558\uc5ec \ubb38\uc11c\uc640 \ud0a4\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlightjs highlight\"><code class=\"language-C#\">var n1ql = @\"UPDATE `default` d\r\n                SET processed = true\r\n                WHERE d.type = 'example'\r\n                AND d.processed = false\r\n                RETURNING d.*, META().id AS docKey\";\r\nvar query = QueryRequest.Create(n1ql);\r\nquery.ScanConsistency(ScanConsistency.RequestPlus);\r\nvar results = bucket.Query(query);<\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\ub9c8\uc9c0\ub9c9\uc73c\ub85c, \ub2e4\uc74c \ucf54\ub4dc\ub294 \uc608\uc2dc\ub97c \uc704\ud574 \ubc18\ud658\ub41c JSON\uc744 \ucf58\uc194\uc5d0 \ucd9c\ub825\ud569\ub2c8\ub2e4.<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlightjs highlight\"><code class=\"language-C#\">foreach(var result in results.Rows) {\r\n    var resultJson = JsonConvert.SerializeObject(result);\r\n    Console.WriteLine($\"Returned: {resultJson}\");\r\n}<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"truerunning-the-program\">\ud504\ub85c\uadf8\ub7a8 \uc2e4\ud589<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>\uc774 \ud504\ub85c\uadf8\ub7a8\uc744 \uc2e4\ud589\ud558\ub824\uba74 \ub2e4\uc74c\uc744 \uc785\ub825\ud558\uae30\ub9cc \ud558\uba74 \ub429\ub2c8\ub2e4. <code>\ub2f7\ub137 \uc2e4\ud589<\/code> \ub97c \uc785\ub825\ud569\ub2c8\ub2e4. \ub2e4\uc74c\uacfc \uac19\uc740 \ucd9c\ub825\uc774 \ud45c\uc2dc\ub429\ub2c8\ub2e4:<\/p>\n<\/div>\n<div class=\"imageblock\">\n<div class=\"content\"><img decoding=\"async\" src=\"\/wp-content\/original-assets\/2016\/december\/using-the-n1ql-returning-keyword-from-.net-core\/042_01_consoleoutput.png\" alt=\"Console output demonstrating the N1QL RETURNING keyword\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"truesummary\">\uc694\uc57d<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>\uadf8\ub9ac\uace0 <code>\ubc18\ud658<\/code> \ud0a4\uc6cc\ub4dc\ub97c \uc0ac\uc6a9\ud558\uba74 \ubb38\uc11c \uadf8\ub8f9\uc744 \uc5c5\ub370\uc774\ud2b8\/\uc0bd\uc785\ud560 \ub54c \ud55c \ub2e8\uacc4\ub97c \uc904\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc880 \ub354 \ubcf5\uc7a1\ud55c <code>\uc5c5\ub370\uc774\ud2b8<\/code> \ub97c \ud074\ub9ad\ud574 \uc5b4\ub5a4 \uc77c\uc774 \ubc1c\uc0dd\ud558\ub294\uc9c0 \ud655\uc778\ud558\uc138\uc694. \uc608\ub97c \ub4e4\uc5b4 \ub2e4\uc74c\uc744 \uc0ac\uc6a9\ud574 \ubcf4\uc138\uc694. <code>\ub204\ub77d\ub428<\/code> \uac19\uc740 \ubd80\uc6b8 \ud50c\ub798\uadf8\ub97c \uc0ac\uc6a9\ud558\ub294 \ub300\uc2e0 '\ucc98\ub9ac\ub428'\uacfc \uac19\uc740 \ubd80\uc6b8 \ud50c\ub798\uadf8\ub97c \uc0ac\uc6a9\ud558\uc138\uc694.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\uadf8\ub9ac\uace0 <a href=\"https:\/\/github.com\/couchbaselabs\/blog-source-code\/tree\/master\/Groves\/042N1QLReturningKeywordWithDotNet\/src\">\uc774 \ube14\ub85c\uadf8 \uac8c\uc2dc\ubb3c\uc758 \uc804\uccb4 \uc18c\uc2a4 \ucf54\ub4dc\ub294 \uae43\ud5c8\ube0c\uc5d0\uc11c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/a>.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\uad81\uae08\ud55c \uc810\uc774 \uc788\uc73c\uba74 \ub313\uae00\uc744 \ub0a8\uae30\uac70\ub098 <a href=\"https:\/\/twitter.com\/mgroves\">\ud2b8\uc704\ud130\ub85c \ubb38\uc758\ud558\uae30<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>I\u2019ve recently learned about the RETURNING keyword in N1QL. When you add it to end of a N1QL query, that query will return the result set that was operated on. For instance, if you use an UPDATE, and that query [&hellip;]<\/p>","protected":false},"author":71,"featured_media":13873,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1811,10127,1816,1812],"tags":[],"ppma_author":[8937],"class_list":["post-2450","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dotnet","category-c-sharp","category-couchbase-server","category-n1ql-query"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.2 (Yoast SEO v26.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using the N1QL RETURNING keyword from .NET Core - The Couchbase Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/ko\/using-the-n1ql-returning-keyword-from-net-core\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using the N1QL RETURNING keyword from .NET Core\" \/>\n<meta property=\"og:description\" content=\"I\u2019ve recently learned about the RETURNING keyword in N1QL. When you add it to end of a N1QL query, that query will return the result set that was operated on. For instance, if you use an UPDATE, and that query [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/ko\/using-the-n1ql-returning-keyword-from-net-core\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-12-08T15:15:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-09T14:27:34+00:00\" \/>\n<meta name=\"author\" content=\"Matthew Groves\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@mgroves\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Matthew Groves\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/\"},\"author\":{\"name\":\"Matthew Groves\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/3929663e372020321b0152dc4fa65a58\"},\"headline\":\"Using the N1QL RETURNING keyword from .NET Core\",\"datePublished\":\"2016-12-08T15:15:00+00:00\",\"dateModified\":\"2025-10-09T14:27:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/\"},\"wordCount\":354,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"articleSection\":[\".NET\",\"C#\",\"Couchbase Server\",\"SQL++ \/ N1QL Query\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/\",\"name\":\"Using the N1QL RETURNING keyword from .NET Core - The Couchbase Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"datePublished\":\"2016-12-08T15:15:00+00:00\",\"dateModified\":\"2025-10-09T14:27:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"width\":1800,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using the N1QL RETURNING keyword from .NET Core\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/3929663e372020321b0152dc4fa65a58\",\"name\":\"Matthew Groves\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/ba51e6aacc53995c323a634e4502ef54\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/70feb1b28a099ad0112b8d21fe1e81e1a4524beed3e20b7f107d5370e85a07ab?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/70feb1b28a099ad0112b8d21fe1e81e1a4524beed3e20b7f107d5370e85a07ab?s=96&d=mm&r=g\",\"caption\":\"Matthew Groves\"},\"description\":\"Matthew D. Groves is a guy who loves to code. It doesn't matter if it's C#, jQuery, or PHP: he'll submit pull requests for anything. He has been coding professionally ever since he wrote a QuickBASIC point-of-sale app for his parent's pizza shop back in the 90s. He currently works as a Senior Product Marketing Manager for Couchbase. His free time is spent with his family, watching the Reds, and getting involved in the developer community. He is the author of AOP in .NET, Pro Microservices in .NET, a Pluralsight author, and a Microsoft MVP.\",\"sameAs\":[\"https:\/\/crosscuttingconcerns.com\",\"https:\/\/x.com\/mgroves\"],\"url\":\"https:\/\/www.couchbase.com\/blog\/ko\/author\/matthew-groves\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Using the N1QL RETURNING keyword from .NET Core - The Couchbase Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/ko\/using-the-n1ql-returning-keyword-from-net-core\/","og_locale":"ko_KR","og_type":"article","og_title":"Using the N1QL RETURNING keyword from .NET Core","og_description":"I\u2019ve recently learned about the RETURNING keyword in N1QL. When you add it to end of a N1QL query, that query will return the result set that was operated on. For instance, if you use an UPDATE, and that query [&hellip;]","og_url":"https:\/\/www.couchbase.com\/blog\/ko\/using-the-n1ql-returning-keyword-from-net-core\/","og_site_name":"The Couchbase Blog","article_published_time":"2016-12-08T15:15:00+00:00","article_modified_time":"2025-10-09T14:27:34+00:00","author":"Matthew Groves","twitter_card":"summary_large_image","twitter_creator":"@mgroves","twitter_misc":{"Written by":"Matthew Groves","Est. reading time":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/"},"author":{"name":"Matthew Groves","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/3929663e372020321b0152dc4fa65a58"},"headline":"Using the N1QL RETURNING keyword from .NET Core","datePublished":"2016-12-08T15:15:00+00:00","dateModified":"2025-10-09T14:27:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/"},"wordCount":354,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","articleSection":[".NET","C#","Couchbase Server","SQL++ \/ N1QL Query"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/","url":"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/","name":"Using the N1QL RETURNING keyword from .NET Core - The Couchbase Blog","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","datePublished":"2016-12-08T15:15:00+00:00","dateModified":"2025-10-09T14:27:34+00:00","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","width":1800,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/using-the-n1ql-returning-keyword-from-net-core\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Using the N1QL RETURNING keyword from .NET Core"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \ube14\ub85c\uadf8","description":"NoSQL \ub370\uc774\ud130\ubca0\uc774\uc2a4, Couchbase","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \ube14\ub85c\uadf8","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/3929663e372020321b0152dc4fa65a58","name":"\ub9e4\ud29c \uadf8\ub85c\ube0c\uc2a4","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/ba51e6aacc53995c323a634e4502ef54","url":"https:\/\/secure.gravatar.com\/avatar\/70feb1b28a099ad0112b8d21fe1e81e1a4524beed3e20b7f107d5370e85a07ab?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/70feb1b28a099ad0112b8d21fe1e81e1a4524beed3e20b7f107d5370e85a07ab?s=96&d=mm&r=g","caption":"Matthew Groves"},"description":"Matthew D. Groves\ub294 \ucf54\ub529\uc744 \uc88b\uc544\ud558\ub294 \uc0ac\ub78c\uc785\ub2c8\ub2e4. C#, jQuery, PHP \ub4f1 \ubb34\uc5c7\uc774\ub4e0 \ud480 \ub9ac\ud018\uc2a4\ud2b8\ub97c \uc81c\ucd9c\ud560 \uc815\ub3c4\ub85c \ucf54\ub529\uc744 \uc88b\uc544\ud569\ub2c8\ub2e4. 90\ub144\ub300\uc5d0 \ubd80\ubaa8\ub2d8\uc758 \ud53c\uc790 \uac00\uac8c\ub97c \uc704\ud574 QuickBASIC POS \uc571\uc744 \ub9cc\ub4e0 \uc774\ud6c4\ub85c \uc804\ubb38\uc801\uc73c\ub85c \ucf54\ub529\uc744 \ud574\uc654\uc2b5\ub2c8\ub2e4. \ud604\uc7ac Couchbase\uc758 \uc120\uc784 \uc81c\ud488 \ub9c8\ucf00\ud305 \uad00\ub9ac\uc790\ub85c \uc77c\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc5ec\uac00 \uc2dc\uac04\uc5d0\ub294 \uac00\uc871\uacfc \ud568\uaed8 \ucd95\uad6c \uacbd\uae30\ub97c \uad00\ub78c\ud558\uace0 \uac1c\ubc1c\uc790 \ucee4\ubba4\ub2c8\ud2f0\uc5d0 \ucc38\uc5ec\ud558\uba70 \uc2dc\uac04\uc744 \ubcf4\ub0c5\ub2c8\ub2e4. \uadf8\ub294 .NET\uc758 AOP, .NET\uc758 \ud504\ub85c \ub9c8\uc774\ud06c\ub85c\uc11c\ube44\uc2a4, Pluralsight \uc800\uc790, Microsoft MVP\uc758 \uc800\uc790\uc774\uae30\ub3c4 \ud569\ub2c8\ub2e4.","sameAs":["https:\/\/crosscuttingconcerns.com","https:\/\/x.com\/mgroves"],"url":"https:\/\/www.couchbase.com\/blog\/ko\/author\/matthew-groves\/"}]}},"authors":[{"term_id":8937,"user_id":71,"is_guest":0,"slug":"matthew-groves","display_name":"Matthew Groves","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/70feb1b28a099ad0112b8d21fe1e81e1a4524beed3e20b7f107d5370e85a07ab?s=96&d=mm&r=g","author_category":"","last_name":"Groves","first_name":"Matthew","job_title":"","user_url":"https:\/\/crosscuttingconcerns.com","description":"Matthew D. Groves\ub294 \ucf54\ub529\uc744 \uc88b\uc544\ud558\ub294 \uc0ac\ub78c\uc785\ub2c8\ub2e4.  C#, jQuery, PHP \ub4f1 \ubb34\uc5c7\uc774\ub4e0 \ud480 \ub9ac\ud018\uc2a4\ud2b8\ub97c \uc81c\ucd9c\ud560 \uc815\ub3c4\ub85c \ucf54\ub529\uc744 \uc88b\uc544\ud569\ub2c8\ub2e4.  90\ub144\ub300\uc5d0 \ubd80\ubaa8\ub2d8\uc758 \ud53c\uc790 \uac00\uac8c\ub97c \uc704\ud574 QuickBASIC POS \uc571\uc744 \ub9cc\ub4e0 \uc774\ud6c4\ub85c \uc804\ubb38\uc801\uc73c\ub85c \ucf54\ub529\uc744 \ud574\uc654\uc2b5\ub2c8\ub2e4.  \ud604\uc7ac Couchbase\uc758 \uc120\uc784 \uc81c\ud488 \ub9c8\ucf00\ud305 \uad00\ub9ac\uc790\ub85c \uc77c\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc5ec\uac00 \uc2dc\uac04\uc5d0\ub294 \uac00\uc871\uacfc \ud568\uaed8 \ucd95\uad6c \uacbd\uae30\ub97c \uad00\ub78c\ud558\uace0 \uac1c\ubc1c\uc790 \ucee4\ubba4\ub2c8\ud2f0\uc5d0 \ucc38\uc5ec\ud558\uba70 \uc2dc\uac04\uc744 \ubcf4\ub0c5\ub2c8\ub2e4.  \uadf8\ub294 .NET\uc758 AOP, .NET\uc758 \ud504\ub85c \ub9c8\uc774\ud06c\ub85c\uc11c\ube44\uc2a4, Pluralsight \uc800\uc790, Microsoft MVP\uc758 \uc800\uc790\uc774\uae30\ub3c4 \ud569\ub2c8\ub2e4."}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts\/2450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/users\/71"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/comments?post=2450"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts\/2450\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/media\/13873"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/media?parent=2450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/categories?post=2450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/tags?post=2450"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/ppma_author?post=2450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}