{"id":538,"date":"2006-01-26T01:00:00","date_gmt":"2006-01-25T16:00:00","guid":{"rendered":"https:\/\/ecoop.net\/memo\/2006-01-26-1.html"},"modified":"2006-01-26T01:00:00","modified_gmt":"2006-01-25T16:00:00","slug":"2006-01-26-1","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/2006-01-26-1.html","title":{"rendered":"InnoDB \u304c\u672c\u5f53\u306b\u5fc5\u8981\u306a\u6642\u3068\u306f"},"content":{"rendered":"<p>\n\u884c\u30ec\u30d9\u30eb\u30ed\u30c3\u30af\u304c\u672c\u5f53\u306b\u5fc5\u8981\u306a\u6642\u306e\u307f\u3002<br \/>\nInnoDB \u3092\u5229\u7528\u3057\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406\u3092\u884c\u3046\u5834\u5408\u3001MyISAM \u306b\u306f\u306a\u3044\u30a8\u30e9\u30fc\u51e6\u7406\u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u308a\u3001\u5bfe\u51e6\u4e8b\u9805\u304c\u5897\u3048\u305f\u308a\u3001MyISAM \u3088\u308a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u52a3\u308b\u9762\u304c\u3042\u308b\u3068\u3044\u3046\u70b9\u306b\u7559\u610f\u3059\u308b\u3053\u3068\u3002<br \/>\n&nbsp;<br \/>\nInnoDB \u3092\u5229\u7528\u3057\u306a\u304f\u3066\u3082\u6e08\u3080\u3088\u3046\u306a\u3001\u4ee5\u4e0b\u306e\u4ee3\u66ff\u624b\u6bb5\u304c\u5b58\u5728\u3059\u308b\u3002<br \/>\n&nbsp;<br \/>\n&#8211; <a href=\"http:\/\/dev.mysql.com\/doc\/refman\/4.1\/ja\/subqueries.html\">\u30b5\u30d6\u30af\u30a8\u30ea<\/a>\n<\/p>\n<blockquote><p>UPDATE user SET presence = 1 WHERE <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;job_id = (SELECT id FROM job WHERE name = &#8216;teacher&#8217;);\n<\/p><\/blockquote>\n<p>\u864e\u306e\u5b50\u3067\u6761\u4ef6\u5206\u5c90\u3082\u4f7f\u3048\u308b\u3057\u3001\u30b5\u30d6\u30af\u30a8\u30ea\u3060\u3051\u3067\u7d50\u69cb\u4f55\u3067\u3082\u3067\u304d\u3066\u3057\u307e\u3046\u3002<br \/>\n&nbsp;<br \/>\n&#8211; <a href=\"http:\/\/dev.mysql.com\/doc\/refman\/4.1\/ja\/lock-tables.html\">LOCK TABLES, UNLOCK TABLES<\/a>]<br \/>\n\u4eca\u65e5\u306e\u30a8\u30f3\u30c8\u30ea\u3092\u53c2\u7167\u3002<br \/>\n&nbsp;<br \/>\n&#8211; <a href=\"http:\/\/dev.mysql.com\/doc\/refman\/4.1\/ja\/miscellaneous-functions.html\">LAST_INSERT_ID()<\/a><br \/>\n<a href=\"http:\/\/dev.mysql.com\/doc\/refman\/4.1\/ja\/getting-unique-id.html\">\u6700\u5f8c\u306b\u633f\u5165\u3057\u305f\u30ec\u30b3\u30fc\u30c9\u306e\u4e00\u610f\u306a ID \u306f\u3069\u306e\u3088\u3046\u306b\u53d6\u5f97\u3059\u308b\u306e\u304b<\/a><br \/>\n<a href=\"http:\/\/dev.mysql.com\/doc\/refman\/4.1\/ja\/mysql-insert-id.html\">mysql_insert_id()<\/a><br \/>\n&nbsp;\u6700\u5f8c\u306e\u633f\u5165(INSERT),\u66f4\u65b0(UPDATE) \u3067\u8a2d\u5b9a\/\u751f\u6210\u3055\u308c\u305f\u30ec\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u306e AUTO_INCREMENT \u5024\u304c\u5165\u308b\u3002AUTO_INCREMENT \u5024\u304c\u66f4\u65b0\/\u8a2d\u5b9a\u3055\u308c\u306a\u304b\u3063\u305f\u5834\u5408\u306f 0 \u306b\u306a\u308b\u3002<br \/>\n&nbsp;<br \/>\n&#8211; <a href=\"http:\/\/dev.mysql.com\/doc\/refman\/4.1\/ja\/miscellaneous-functions.html\">GET_LOCK(), RELEASE_LOCK()<\/a><br \/>\nJava \u3084 C# \u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5b9a\u306e\u30ed\u30c3\u30af\u306e\u3088\u3046\u306a\u3001\u540d\u524d\u6307\u5b9a\u306e\u30ed\u30c3\u30af\u3002<br \/>\n\u305f\u3060\u3057\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u3092\u907f\u3051\u308b\u305f\u3081\u540c\u6642\u306b\u8907\u6570\u306e\u30ed\u30c3\u30af\u3092\u7372\u5f97\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002\u3064\u307e\u308a\u3001GET_LOCK() \u306f\u3001\u524d\u56de\u306eGET_LOCK() \u306b\u3088\u308b\u30ed\u30c3\u30af\u3092\u958b\u653e\u3059\u308b\u3002<br \/>\n&nbsp;<br \/>\n\u53c2\u8003:<br \/>\n&#8211; <a href=\"http:\/\/tsuttayo.sytes.net\/mysql\/innodb\/\">\u91e3\u3063\u305f\u3088\uff01\u91e3\u308a\u3068\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf: MySQL InnoDB \u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u884c\u30ec\u30d9\u30eb\u30ed\u30c3\u30af\u304c\u672c\u5f53\u306b\u5fc5\u8981\u306a\u6642\u306e\u307f\u3002 InnoDB \u3092\u5229\u7528\u3057\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406\u3092\u884c\u3046\u5834\u5408\u3001MyISAM \u306b\u306f\u306a\u3044\u30a8\u30e9\u30fc\u51e6\u7406\u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u308a\u3001\u5bfe\u51e6\u4e8b\u9805\u304c\u5897\u3048\u305f\u308a\u3001MyISAM \u3088\u308a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u52a3\u308b\u9762\u304c\u3042\u308b\u3068\u3044\u3046\u70b9\u306b &hellip; <a href=\"https:\/\/www.ecoop.net\/memo\/archives\/2006-01-26-1.html\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">InnoDB \u304c\u672c\u5f53\u306b\u5fc5\u8981\u306a\u6642\u3068\u306f<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[26],"class_list":["post-538","post","type-post","status-publish","format-standard","hentry","tag-mysql"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=538"}],"version-history":[{"count":0,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/538\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}