{"author_name":"onozaty","blog_url":"https://blog.enjoyxstudy.com/","categories":["[programming]"],"type":"rich","author_url":"https://blog.hatena.ne.jp/onozaty/","image_url":null,"provider_name":"Hatena Blog","blog_title":"Enjoy*Study","title":"DB\u3067\u306esleep","provider_url":"https://hatena.blog","version":"1.0","url":"https://blog.enjoyxstudy.com/entry/20130208/p1","published":"2013-02-08 00:00:00","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.enjoyxstudy.com%2Fentry%2F20130208%2Fp1\" title=\"DB\u3067\u306esleep - Enjoy*Study\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u3053\u306a\u3044\u3060\u3001PostgreSQL\u3067sleep\u304c\u4f7f\u3048\u308b\u3053\u3068\u3092\u6559\u3048\u3066\u3082\u3089\u3044\u307e\u3057\u305f\u3002 pg_sleep(seconds)pg_sleep\u306f\u3001seconds\u79d2\u7d4c\u904e\u3059\u308b\u307e\u3067\u3001\u73fe\u5728\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u4f11\u6b62\u3055\u305b\u307e\u3059\u3002seconds\u306fdouble precision\u578b\u306e\u5024\u3067\u3059\u3002 \u305d\u306e\u305f\u3081\u3001\u5c0f\u6570\u5358\u4f4d\u3067\u4f11\u6b62\u79d2\u6570\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306b\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002 \u65e5\u4ed8/\u6642\u523b\u95a2\u6570\u3068\u6f14\u7b97\u5b50] \u4e0b\u8a18\u306e\u3088\u3046\u306a\u611f\u3058\u30671.5\u79d2\u30b9\u30ea\u30fc\u30d7\u3057\u307e\u3059\u3002 SELECT pg_sleep(1.5); MySQL\u3067\u3082\u540c\u3058\u3088\u3046\u306a\u95a2\u6570\u304c\u3042\u308a\u307e\u3057\u305f\u3002 SLEEP(duration)duration \u5f15\u6570\u306b\u6307\u5b9a\u3055\u308c\u305f\u79d2\u6570\u3060\u3051\u30b9\u30ea\u30fc\u30d7 (\u4e00\u6642\u505c\u6b62) \u3057\u305f\u2026","height":"190"}