{"provider_url":"https://hatena.blog","blog_title":"\u3050\u308b\u3050\u308b\uff5e","blog_url":"https://bleis-tift.hatenablog.com/","description":"\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308c\u3070\u51fa\u6765\u308b\u3063\u307d\u3044\u3002 DECLARE @str AS varchar(max); SET @str = ''; SELECT @str = @str + str FROM SomeTable; SELECT @str; \u53c2\u8003\uff1a\u6587\u5b57\u5217\u3092\u96c6\u8a08\u7684\u306b\u7d50\u5408\u3059\u308b(\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9\u95a2\u6570\u7d4c\u7531\u3067 GROUP BY \u5bfe\u5fdc) \u30ab\u30f3\u30de\u533a\u5207\u308a\u304c\u3057\u305f\u3051\u308c\u3070\u3001 DECLARE @str AS varchar(max); SET @str = ''; SELECT -- \u5148\u982d\u8981\u7d20\u306b\u306f\u30ab\u30f3\u30de\u3092\u4ed8\u3051\u306a\u3044 @str = CASE @str WHEN '' THEN str ELSE @str + ', ' + str \u2026","author_name":"bleis-tift","url":"https://bleis-tift.hatenablog.com/entry/20090511/1242008874","categories":["SQL"],"version":"1.0","title":"SQL Server \u3067\u6587\u5b57\u5217\u3092\u5168\u90e8\u7d50\u5408\u3057\u305f\u3044\u3060\u3051\u306a\u3089","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbleis-tift.hatenablog.com%2Fentry%2F20090511%2F1242008874\" title=\"SQL Server \u3067\u6587\u5b57\u5217\u3092\u5168\u90e8\u7d50\u5408\u3057\u305f\u3044\u3060\u3051\u306a\u3089 - \u3050\u308b\u3050\u308b\uff5e\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/bleis-tift/","type":"rich","provider_name":"Hatena Blog","width":"100%","height":"190","image_url":null,"published":"2009-05-11 11:27:54"}