{"id":3255,"date":"2025-12-18T14:21:08","date_gmt":"2025-12-18T05:21:08","guid":{"rendered":"https:\/\/www.agile-software.site\/?p=3255"},"modified":"2025-12-18T14:22:50","modified_gmt":"2025-12-18T05:22:50","slug":"%e3%83%97%e3%83%ab%e3%83%bc%e3%83%8b%e3%83%b3%e3%82%b0%e3%81%8c%e4%bd%bf%e3%81%88%e3%81%aa%e3%81%84%e7%90%86%e7%94%b1","status":"publish","type":"post","link":"https:\/\/agile-software.net\/?p=3255","title":{"rendered":"\u30d7\u30eb\u30fc\u30cb\u30f3\u30b0\u304c\u4f7f\u3048\u306a\u3044\u7406\u7531"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u30af\u30a8\u30ea1\uff1a\u30d7\u30eb\u30fc\u30cb\u30f3\u30b0\u304c\u300c\u4f7f\u3048\u308b\u300d\u7406\u7531<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>WHERE C_CUSTOMER_SK between 100000 and 600000\nAND C_LAST_NAME LIKE &#39;Johnson&#39;<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u7406\u7531\uff1a\u30c7\u30fc\u30bf\u306e\u300c\u4e26\u3073\u9806\u300d\u3068\u300c\u30e1\u30bf\u30c7\u30fc\u30bf\u300d\u306e\u76f8\u6027\u304c\u826f\u3044<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>ID\uff08SK\uff09\u306e\u9023\u7d9a\u6027<\/strong>: <code>C_CUSTOMER_SK<\/code>\uff08\u30b5\u30ed\u30b2\u30fc\u30c8\u30ad\u30fc\uff09\u306e\u3088\u3046\u306a\u9023\u756a\u306eID\u306f\u3001\u901a\u5e38\u3001\u30c7\u30fc\u30bf\u304c\u30ed\u30fc\u30c9\u3055\u308c\u305f\u9806\u5e8f\u3068\u4e00\u81f4\u3057\u307e\u3059\u3002Snowflake\u306f\u30c7\u30fc\u30bf\u3092\u30ed\u30fc\u30c9\u9806\u306b\u30de\u30a4\u30af\u30ed\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u5206\u5272\u3059\u308b\u305f\u3081\u3001\u5404\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e <code>C_CUSTOMER_SK<\/code> \u306e\u300c\u6700\u5c0f\u5024\u301c\u6700\u5927\u5024\u300d\u306e\u7bc4\u56f2\u304c\u975e\u5e38\u306b\u72ed\u304f\u3001\u91cd\u8907\u3057\u306b\u304f\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u5287\u7684\u306a\u7d5e\u308a\u8fbc\u307f<\/strong>: \u300c10\u4e07\u304b\u308960\u4e07\u306e\u9593\u300d\u3068\u3044\u3046\u6761\u4ef6\u304c\u3042\u308c\u3070\u3001Snowflake\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u3092\u898b\u308b\u3060\u3051\u3067\u3001\u300c\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f1\u301c5\u4e07\u3060\u304b\u3089\u7121\u8996\u300d\u300c\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f10\u301c15\u4e07\u3060\u304b\u3089\u8aad\u3080\u300d\u3068\u3001\u8aad\u3080\u3079\u304d\u30d5\u30a1\u30a4\u30eb\u3092\u7269\u7406\u7684\u306b\u5207\u308a\u6368\u3066\uff08\u30d7\u30eb\u30fc\u30cb\u30f3\u30b0\uff09\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u30af\u30a8\u30ea2\uff1a\u30d7\u30eb\u30fc\u30cb\u30f3\u30b0\u304c\u300c\u52b9\u304d\u306b\u304f\u3044\u300d\u7406\u7531<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>WHERE C_LAST_NAME = &#39;Johnson&#39;<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u7406\u7531\uff1a\u30c7\u30fc\u30bf\u306e\u300c\u6563\u3089\u3070\u308a\u300d\u304c\u5927\u304d\u3059\u304e\u308b<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u540d\u524d\u306e\u30e9\u30f3\u30c0\u30e0\u6027<\/strong>: \u30c7\u30fc\u30bf\u306e\u30ed\u30fc\u30c9\u9806\u304c\u300c\u540d\u524d\u9806\u300d\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u9650\u308a\u3001<code>C_LAST_NAME<\/code>\uff08\u59d3\uff09\u306f\u3042\u3089\u3086\u308b\u30de\u30a4\u30af\u30ed\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u5206\u6563\u3057\u3066\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30e1\u30bf\u30c7\u30fc\u30bf\u306e\u9650\u754c<\/strong>: \u5168\u3066\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\uff08\u6700\u5c0f\u5024\u301c\u6700\u5927\u5024\uff09\u304c\u300cA\u3055\u3093\u301cZ\u3055\u3093\u300d\u3068\u3044\u3046\u5e83\u3044\u7bc4\u56f2\u3092\u30ab\u30d0\u30fc\u3057\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u5834\u5408\u3001Snowflake\u306f\u300c&#8217;Johnson&#8217; \u3055\u3093\u304c\u3069\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u3044\u308b\u304b\u5206\u304b\u3089\u306a\u3044\uff08\uff1d\u5168\u30d5\u30a1\u30a4\u30eb\u306b\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\uff09\u300d\u3068\u5224\u65ad\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u7d50\u679c<\/strong>: \u7d50\u5c40\u3001<strong>\u307b\u307c\u5168\u3066\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u30b9\u30ad\u30e3\u30f3<\/strong>\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u304f\u306a\u308a\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u4f4e\u4e0b\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">3. \u306a\u305c\u300cLIKE\u300d\u3068\u300c=\u300d\u306e\u9055\u3044\u3067\u306f\u306a\u3044\u306e\u304b\uff1f<\/h2>\n\n\n\n<p>\u3053\u3053\u3067\u91cd\u8981\u306a\u306e\u306f\u3001\u6f14\u7b97\u5b50\u304c <code>LIKE<\/code> \u304b <code>=<\/code> \u304b\u3067\u306f\u306a\u304f\u3001\u300c\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u30ab\u30e9\u30e0\u304c\u3001\u30c7\u30fc\u30bf\u306e\u7269\u7406\u7684\u306a\u4e26\u3073\u9806\uff08\u30af\u30e9\u30b9\u30bf\u30ea\u30f3\u30b0\uff09\u3092\u53cd\u6620\u3057\u3066\u3044\u308b\u304b\u300d\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><td><strong>\u6bd4\u8f03\u9805\u76ee<\/strong><\/td><td><strong>\u30af\u30a8\u30ea1 (C_CUSTOMER_SK)<\/strong><\/td><td><strong>\u30af\u30a8\u30ea2 (C_LAST_NAME)<\/strong><\/td><\/tr><\/thead><tbody><tr><td><strong>\u4e3b\u306a\u30d5\u30a3\u30eb\u30bf<\/strong><\/td><td>\u6570\u5024\u306e\u7bc4\u56f2\u6307\u5b9a\uff08\u9023\u756a\uff09<\/td><td>\u6587\u5b57\u5217\u306e\u5b8c\u5168\u4e00\u81f4\uff08\u30e9\u30f3\u30c0\u30e0\uff09<\/td><\/tr><tr><td><strong>\u30c7\u30fc\u30bf\u306e\u504f\u308a<\/strong><\/td><td>\u7279\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u56fa\u307e\u3063\u3066\u3044\u308b<\/td><td>\u5168\u30d5\u30a1\u30a4\u30eb\u306b\u6563\u3089\u3070\u3063\u3066\u3044\u308b<\/td><\/tr><tr><td><strong>\u30d7\u30eb\u30fc\u30cb\u30f3\u30b0<\/strong><\/td><td><strong>\u975e\u5e38\u306b\u52b9\u304d\u3084\u3059\u3044<\/strong><\/td><td><strong>\u52b9\u304d\u306b\u304f\u3044\uff08\u5168\u30b9\u30ad\u30e3\u30f3\u306b\u8fd1\u3044\uff09<\/strong><\/td><\/tr><tr><td><strong>\u51e6\u7406\u901f\u5ea6<\/strong><\/td><td>\u901f\u3044\uff08\u8aad\u307e\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u304c\u591a\u3044\uff09<\/td><td>\u9045\u3044\uff08\u307b\u307c\u5168\u90e8\u8aad\u3080\uff09<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-jin-gb-block-icon-box jin-icon-comment jin-iconbox\"><div class=\"jin-iconbox-icons\"><i class=\"jic jin-ifont-comment jin-icons\"><\/i><\/div><div class=\"jin-iconbox-main\">\n<p><strong>\u30af\u30a8\u30ea1\uff08\u6210\u529f\uff09<\/strong>: \u300c\u672c\u306eID\u304c100\u756a\u301c200\u756a\u306e\u672c\u3092\u6301\u3063\u3066\u304d\u3066\u300d<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u53f8\u66f8\uff08Snowflake\uff09\u306f\u300c100\u756a\u53f0\u306e\u68da\u300d\u3060\u3051\u3092\u898b\u308c\u3070\u3044\u3044\u306e\u3067\u3001\u4e00\u77ac\u3067\u7d42\u308f\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u30af\u30a8\u30ea2\uff08\u5931\u6557\uff09<\/strong>: \u300c\u8457\u8005\u304c\u300e\u4f50\u85e4\u3055\u3093\u300f\u306e\u672c\u3092\u5168\u90e8\u6301\u3063\u3066\u304d\u3066\u300d<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u672c\u304c\u8457\u8005\u9806\u306b\u4e26\u3093\u3067\u3044\u306a\u3044\u5834\u5408\u3001\u53f8\u66f8\u306f\u56f3\u66f8\u5ba4\u306e<strong>\u5168\u3066\u306e\u68da\u3092\u7aef\u304b\u3089\u7aef\u307e\u3067\u30c1\u30a7\u30c3\u30af<\/strong>\u3057\u3066\u300c\u4f50\u85e4\u3055\u3093\u300d\u3092\u63a2\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u304c\u300c\u30d7\u30eb\u30fc\u30cb\u30f3\u30b0\u304c\u52b9\u304b\u306a\u3044\u300d\u72b6\u614b\u3067\u3059\u3002<\/li>\n<\/ul>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u30af\u30a8\u30ea1\uff1a\u30d7\u30eb\u30fc\u30cb\u30f3\u30b0\u304c\u300c\u4f7f\u3048\u308b\u300d\u7406\u7531 \u7406\u7531\uff1a\u30c7\u30fc\u30bf\u306e\u300c\u4e26\u3073\u9806\u300d\u3068\u300c\u30e1\u30bf\u30c7\u30fc\u30bf\u300d\u306e\u76f8\u6027\u304c\u826f\u3044 \u30af\u30a8\u30ea2\uff1a\u30d7\u30eb\u30fc\u30cb\u30f3\u30b0\u304c\u300c\u52b9\u304d\u306b\u304f\u3044\u300d\u7406\u7531 \u7406\u7531\uff1a\u30c7\u30fc\u30bf\u306e\u300c\u6563\u3089\u3070\u308a\u300d\u304c\u5927\u304d\u3059\u304e\u308b 3. \u306a\u305c\u300cLIKE\u300d\u3068\u300c=\u300d\u306e\u9055\u3044\u3067\u306f\u306a<\/p>\n","protected":false},"author":1,"featured_media":3257,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jin_ogp_image_url":"","_jin_last_featured_id":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3255","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/3255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3255"}],"version-history":[{"count":1,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/3255\/revisions"}],"predecessor-version":[{"id":3256,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/3255\/revisions\/3256"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/media\/3257"}],"wp:attachment":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}