{"type":"rich","height":"190","categories":["C#",".NET Framework",".NET Core"],"blog_url":"https://takap-tech.com/","provider_url":"https://hatena.blog","title":"C#\u3067\u6587\u5b57\u5217\u306bSQL\u306eIN\u53e5\u306e\u3088\u3046\u306a\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3059\u308b","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/T/Takachan/20181019/20181019004124.png","provider_name":"Hatena Blog","published":"2019-11-21 23:51:09","description":"SQL\u306b\u3042\u308bIN\u53e5\u3092C#\u306e\u6587\u5b57\u5217\u306b\u9069\u7528\u3057\u3001\u30ea\u30b9\u30c8\u306b\u683c\u7d0d\u3055\u308c\u305f\u6587\u5b57\u5217\u304c\u3042\u308b\u6587\u5b57\u5217\u306b\u4e00\u81f4\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308b\u51e6\u7406\u3092string\u306b\u8ffd\u52a0\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u4f8b\u3048\u3070\"ABC123\"\u3068\u3044\u3046\u6587\u5b57\u5217\u306e\u4e2d\u306b\"AB\", \"12\"\u3068\u3044\u3046\u6587\u5b57\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u3068\u3044\u3046\u51e6\u7406\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3051\u3070\u5224\u5b9a\u3067\u304d\u307e\u3059\u3002 string str = \"ABC123\"; // \u2605\u5224\u5b9a\u65b9\u6cd5(1) if(str == \"AB\" || str == \"12\") { // \u898b\u3064\u304b\u3063\u305f } else { // \u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f } // \u2605\u5224\u5b9a\u65b9\u6cd5(2) List<string> keys = new List<string>() { \"AB\", \u2026","blog_title":"PG\u65e5\u8a8c","url":"https://takap-tech.com/entry/2019/11/21/235109","author_name":"Takachan","width":"100%","version":"1.0","author_url":"https://blog.hatena.ne.jp/Takachan/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2019%2F11%2F21%2F235109\" title=\"C#\u3067\u6587\u5b57\u5217\u306bSQL\u306eIN\u53e5\u306e\u3088\u3046\u306a\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3059\u308b - PG\u65e5\u8a8c\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}