{"id":15543,"date":"2022-09-22T06:00:00","date_gmt":"2022-09-21T21:00:00","guid":{"rendered":"https:\/\/www.muscle-hypertrophy.com\/?p=15543"},"modified":"2022-07-22T12:52:03","modified_gmt":"2022-07-22T03:52:03","slug":"%e8%a4%87%e6%95%b0%e8%a1%8c%e3%81%ae%e3%83%ac%e3%82%b3%e3%83%bc%e3%83%89%e3%82%bb%e3%83%83%e3%83%88%e3%82%92%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%81%a8%e3%81%97%e3%81%a6%e8%bf%94%e3%81%99%e3%82%b9","status":"publish","type":"post","link":"https:\/\/www.muscle-hypertrophy.com\/?p=15543","title":{"rendered":"\u8907\u6570\u884c\u306e\u30ec\u30b3\u30fc\u30c9\u30bb\u30c3\u30c8\u3092\u30c6\u30fc\u30d6\u30eb\u3068\u3057\u3066\u8fd4\u3059\u30b9\u30c8\u30a2\u30c9\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u307e\u305f\u306f\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9\u306e\u30a4\u30f3\u30e9\u30a4\u30f3\u30c6\u30fc\u30d6\u30eb\u5024\u95a2\u6570\u3092SQL Server\u3067\u5b9a\u7fa9\u3059\u308b"},"content":{"rendered":"\n<p>\u3000<a href=\"https:\/\/www.muscle-hypertrophy.com\/?p=15446\" target=\"_blank\" rel=\"noopener\">ROC\u66f2\u7dda\u306e\u95be\u5024\u3092\u6c42\u3081\u308b\u30b9\u30c8\u30a2\u30c9\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u307e\u305f\u306f\u30a4\u30f3\u30e9\u30a4\u30f3\u30c6\u30fc\u30d6\u30eb\u5024\u95a2\u6570\u3092SQL Server\u3067\u5b9a\u7fa9\u3059\u308b<\/a>\u3067\u306f\u5358\u4e00\u306e\u30ec\u30b3\u30fc\u30c9\u3092\u8fd4\u3059\u30b9\u30c8\u30a2\u30c9\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\uff0c\u307e\u305f\u306f\u30a4\u30f3\u30e9\u30a4\u30f3\u30c6\u30fc\u30d6\u30eb\u5024\u95a2\u6570\u3092\u4f5c\u6210\u3057\u305f\uff0e\u4eca\u56de\u306f\u5f15\u6570\u306e\u6700\u5c0f\u5024\u3068\u6700\u5927\u5024\u3092\u6e21\u3057\u3066\u8907\u6570\u884c\u306e\u30ec\u30b3\u30fc\u30c9\u30bb\u30c3\u30c8\u3092\u30c6\u30fc\u30d6\u30eb\u3068\u3057\u3066\u8fd4\u3059\u30b9\u30c8\u30a2\u30c9\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\uff0c\u307e\u305f\u306f\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9\u306e\u30a4\u30f3\u30e9\u30a4\u30f3\u95a2\u6570\u3092\u5b9a\u7fa9\u3057\u305f\u3044\uff0e<\/p>\n<p><!--more--><\/p>\n<h2>\u30b9\u30c8\u30a2\u30c9\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3<\/h2>\n<p>\u3000\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\uff0e<\/p>\n<ul>\n<li>3\u884c\u76ee CREATE PROCEDURE \u3067\u4f5c\u6210\u3059\u308b\u30b9\u30c8\u30a2\u30c9\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u540d\u3092\u5b9a\u7fa9\u3059\u308b\uff0e\u95a2\u6570\u540d\u306e\u6b21\u306f () \u3067\u5f15\u6570\u3092\u6307\u5b9a\u3059\u308b<\/li>\n<li>5\u884c\u76ee\u30686\u884c\u76ee\u3067\u5f15\u6570\u3068\u305d\u306e\u30c7\u30fc\u30bf\u578b\u3092\u5b9a\u7fa9\u3059\u308b\uff0e\u5f15\u6570\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u306f\u30b3\u30f3\u30de\u3067\u533a\u5207\u308b<\/li>\n<li>8\u884c\u76ee AS \u4ee5\u4e0b9\u884c\u76ee\u306e BEGIN \u304b\u308939\u884c\u76ee\u306e END \u307e\u3067\u304c\u3072\u3068\u307e\u3068\u307e\u308a\u3067\u3042\u308b<\/li>\n<li>10\u884c\u76ee DECLARE \u3067\u30c6\u30fc\u30d6\u30eb\u578b\u306e\u30ed\u30fc\u30ab\u30eb\u5909\u6570 @TmpTable \u3092\u5ba3\u8a00\u3059\u308b\uff0e\u5217\u306e\u5b9a\u7fa9\u306f () \u5185\u306e12\u884c\u76ee\u304b\u308926\u884c\u76ee\u307e\u3067\u3067\u3042\u308b<\/li>\n<li>28\u884c\u76ee\u306e BEGIN \u304b\u308938\u884c\u76ee\u306e END \u307e\u3067\u304c\u3072\u3068\u307e\u3068\u307e\u308a\u3067\u3042\u308b<\/li>\n<li>29\u884c\u76ee\u3067\u6574\u6570\u578b\u306e\u30ed\u30fc\u30ab\u30eb\u5909\u6570 @Inc \u3092\u5ba3\u8a00\u3057\uff0c30\u884c\u76ee\u3067\u521d\u671f\u5316\u3059\u308b<\/li>\n<li>31\u884c\u76ee\u306e WHILE \u306b\u8a18\u8ff0\u3057\u305f\u6761\u4ef6\u3092\u6e80\u305f\u3057\u3066\u3044\u308b\u9593\uff0c32\u884c\u76ee BEGIN \u304b\u308935\u884c\u76ee END \u307e\u3067\u306e\u51e6\u7406\u3092\u30eb\u30fc\u30d7\u3059\u308b\uff0e\u5177\u4f53\u7684\u306b\u306f33\u884c\u76ee\u3067\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9\u95a2\u6570 UDF_Temperature \u306b\u5f15\u6570 @Inc \u3092\u6e21\u3057\uff0c\u5f97\u3089\u308c\u305f\u7d50\u679c\u3092 @TmpTable \u306b\u633f\u5165\u3057\u3066\u3044\u308b<\/li>\n<li>34\u884c\u76ee\u3067\u30ed\u30fc\u30ab\u30eb\u5909\u6570 @Inc \u306b1\u52a0\u7b97\u3059\u308b<\/li>\n<li>\u30eb\u30fc\u30d7\u3092\u629c\u3051\u305f\u308936\u884c\u76ee\u3067 @TmpTable \u306e\u5185\u5bb9\u3092\u53d6\u5f97\u3059\u308b<\/li>\n<\/ul>\n<p>\u3000\u3053\u306e\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3067\u306f\u7b2c\uff11\u5f15\u6570 (@Start) \u304c\u7b2c\uff12\u5f15\u6570 (@End) \u3088\u308a\u3082\u5c0f\u3055\u3044\u3053\u3068\u3092\u6697\u9ed9\u306e\u524d\u63d0\u3068\u3057\u3066\u304a\u308a\uff0c\u9006\u306b\u5927\u304d\u3044\u5834\u5408\uff0c\u7d50\u679c\u306f\uff10\u884c\u3068\u306a\u308b\uff0eWHILE \u3067\u306e\u6761\u4ef6\u5224\u5b9a\u3092\u6e80\u305f\u3055\u306a\u3044\u305f\u3081\u3067\u3042\u308b\uff0e<\/p>\n<pre>USE HeatStrokeDB;\nGO\nCREATE PROCEDURE SP_SET_Temperature_Death \n(\t\n\t@Start\tINT,\n\t@End\tINT\n)\nAS\nBEGIN\nDECLARE @TmpTable TABLE \n(\n\t[\u95be\u5024]\tINT\n,\t[a]\tINT\n,\t[b]\tINT\n,\t\tINT\n,\t[d]\tINT\n,\t[a+c]\tINT\n,\t[b+d]\tINT\n,\t[a+b]\tINT\n,\t\tINT\n,\t[N]\tINT\n,\t[Sensitivity]\tFLOAT\n,\t[Specificity]\tFLOAT\n,\t[1-Specificity]\tFLOAT\n,\t[1-Sensitivity]\tFLOAT\n,\t[Radius Squared]\tFLOAT\n)\nBEGIN\n\tDECLARE\t@Inc INT\n\tSET @Inc = @Start\n\tWHILE @Inc &lt;= @End\n\tBEGIN\n\t\tINSERT INTO @TmpTable\tSELECT * FROM dbo.UDF_Temperature_Death(@Inc)\n\t\tSET @Inc = @Inc + 1\n\tEND\n\tSELECT\t*\tFROM\t@TmpTable\nEND\nEND\nGO<\/pre>\n<p>\u3000\u4e0a\u8a18\u30b9\u30c8\u30a2\u30c9\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\uff0e<\/p>\n<pre>USE HeatStrokeDB;\nGO\nEXEC dbo.SP_SET_Temperature_Death @Start = 10, @End = 40<\/pre>\n<h2>\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9\u306e\u30a4\u30f3\u30e9\u30a4\u30f3\u30c6\u30fc\u30d6\u30eb\u5024\u95a2\u6570<\/h2>\n<p>\u3000\u30a4\u30f3\u30e9\u30a4\u30f3\u30c6\u30fc\u30d6\u30eb\u5024\u95a2\u6570\u306e\u5834\u5408\uff0c\u5f15\u6570\u306e\u6b21\u306e8\u884c\u76ee\u3067\u623b\u308a\u5024\u3092\u30c7\u30fc\u30bf\u578b\u304a\u3088\u3073\u5217\u5b9a\u7fa9\u3068\u3068\u3082\u306b\u5ba3\u8a00\u3057\u3066\u304a\u304f\u306e\u304c\u30b9\u30c8\u30a2\u30c9\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3068\u306e\u9055\u3044\u306b\u306a\u308b\uff0e\u95a2\u6570\u672c\u4f53\u306e\u51e6\u7406\u306f\u30b9\u30c8\u30a2\u30c9\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3068\u9055\u3044\u306f\u306a\u3044\uff0e<\/p>\n<pre>USE HeatStrokeDB;\nGO\nCREATE FUNCTION UDF_SET_Temperature_Death \n(\t\n\t@Start\tINT,\n\t@End\tINT\n)\nRETURNS @TmpTable TABLE \n(\n\t[\u95be\u5024]\tINT\n,\t[a]\tINT\n,\t[b]\tINT\n,\t\tINT\n,\t[d]\tINT\n,\t[a+c]\tINT\n,\t[b+d]\tINT\n,\t[a+b]\tINT\n,\t\tINT\n,\t[N]\tINT\n,\t[Sensitivity]\tFLOAT\n,\t[Specificity]\tFLOAT\n,\t[1-Specificity]\tFLOAT\n,\t[1-Sensitivity]\tFLOAT\n,\t[Radius Squared]\tFLOAT\n)\nAS\nBEGIN\n\tDECLARE\t@Inc INT\n\tSET @Inc = @Start\n\tWHILE @Inc &lt;= @End\n\tBEGIN\n\t\tINSERT INTO @TmpTable\tSELECT * FROM dbo.UDF_Temperature_Death(@Inc)\n\t\tSET @Inc = @Inc + 1\n\tEND\n\tRETURN\nEND\nGO<\/pre>\n<p>\u3000\u4e0a\u8a18\u306e\u95a2\u6570\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\uff0e<\/p>\n<pre>USE HeatStrokeDB;\nGO\nSELECT * FROM dbo.UDF_Temperature_Death_SET(10,40);<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u3000ROC\u66f2\u7dda\u306e\u95be\u5024\u3092\u6c42\u3081\u308b\u30b9\u30c8\u30a2\u30c9\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u307e\u305f\u306f\u30a4\u30f3\u30e9\u30a4\u30f3\u30c6\u30fc\u30d6\u30eb\u5024\u95a2\u6570\u3092SQL Server\u3067\u5b9a\u7fa9\u3059\u308b\u3067\u306f\u5358\u4e00\u306e\u30ec\u30b3\u30fc\u30c9\u3092\u8fd4\u3059\u30b9\u30c8\u30a2\u30c9\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\uff0c\u307e\u305f\u306f\u30a4\u30f3\u30e9\u30a4\u30f3\u30c6\u30fc\u30d6\u30eb\u5024\u95a2\u6570\u3092\u4f5c\u6210\u3057\u305f\uff0e\u4eca\u56de\u306f\u5f15\u6570\u306e\u6700\u5c0f\u5024\u3068\u6700\u5927 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.muscle-hypertrophy.com\/?p=15543\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u8907\u6570\u884c\u306e\u30ec\u30b3\u30fc\u30c9\u30bb\u30c3\u30c8\u3092\u30c6\u30fc\u30d6\u30eb\u3068\u3057\u3066\u8fd4\u3059\u30b9\u30c8\u30a2\u30c9\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u307e\u305f\u306f\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9\u306e\u30a4\u30f3\u30e9\u30a4\u30f3\u30c6\u30fc\u30d6\u30eb\u5024\u95a2\u6570\u3092SQL Server\u3067\u5b9a\u7fa9\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":15391,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[6748,11223,11882,11218,6372,7752,3562,11935,9703,2885,4673,8413,6743,9695,11883,11210,4672,4657,2740,2872,5292,7154,11941,11933,2937,3574,462,11942,2499,7659,4593,5202,11939,11943,4597,9597,665,11944,5456,11940,4503,3949,1262,3549,8386,2944,3542,3527,3528,9596,11945,2494,3630,11938,11880,2588],"class_list":["post-15543","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-as","tag-begin","tag-create-function","tag-create-procedure","tag-dbo","tag-declare","tag-end","tag-exec","tag-execute","tag-float","tag-from","tag-insert-into","tag-int","tag-return","tag-returns","tag-roc","tag-select","tag-set","tag-sql-server","tag-t-sql","tag-table","tag-use","tag-while","tag-11933","tag-2937","tag-3574","tag-462","tag-11942","tag-2499","tag-7659","tag-4593","tag-5202","tag-11939","tag-11943","tag-4597","tag-9597","tag-665","tag-11944","tag-5456","tag-11940","tag-4503","tag-3949","tag-1262","tag-3549","tag-8386","tag-2944","tag-3542","tag-3527","tag-3528","tag-9596","tag-11945","tag-2494","tag-3630","tag-11938","tag-11880","tag-2588"],"_links":{"self":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/15543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15543"}],"version-history":[{"count":26,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/15543\/revisions"}],"predecessor-version":[{"id":15610,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/15543\/revisions\/15610"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/media\/15391"}],"wp:attachment":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}