{"id":1168,"date":"2010-01-27T13:25:31","date_gmt":"2010-01-27T04:25:31","guid":{"rendered":"http:\/\/doodlenote.net\/?p=1168"},"modified":"2010-01-27T13:25:31","modified_gmt":"2010-01-27T04:25:31","slug":"mysql%e3%81%a7timestamp%e5%9e%8b%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e6%9b%b4%e6%96%b0%e6%97%a5%e6%99%82%e3%81%a8%e4%bd%9c%e6%88%90%e6%97%a5%e6%99%82%e3%81%ae%e4%b8%a1%e6%96%b9%e3%82%92%e8%a8%98","status":"publish","type":"post","link":"https:\/\/doodlenote.net\/?p=1168","title":{"rendered":"mysql\u3067timestamp\u578b\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u3068\u4f5c\u6210\u65e5\u6642\u306e\u4e21\u65b9\u3092\u8a18\u9332"},"content":{"rendered":"<p>mysql\u3067timestamp\u578b\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u3068\u4f5c\u6210\u65e5\u6642\u306e\u4e21\u65b9\u3092\u8a18\u9332\u3057\u305f\u3044<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\ncreated timestamp NOT NULL default &#8216;0000-00-00 00:00:00&#8217;,<br \/>\nmodified timestamp NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- <\/p>\n<p>\nmysql> INSERT INTO test ( name , create_date ) VALUES ( &#8216;foo&#8217; , NULL );<br \/>\nQuery OK, 1 row affected (0.00 sec)<\/p>\n<p>mysql> select * from test;<br \/>\n+&#8212;-+&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<br \/>\n| id | name | create_date         | modified_date       |<br \/>\n+&#8212;-+&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<br \/>\n|  1 | foo  | 2010-01-26 15:27:59 | 2010-01-26 15:27:59 |<br \/>\n+&#8212;-+&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<br \/>\n1 row in set (0.00 sec)<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>\n&#8212;&#8212;&#8212;-\u30c6\u30b9\u30c8\u7528\u306e\u30c6\u30fc\u30d6\u30eb&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nCREATE TABLE `test` (<br \/>\n id int(4) unsigned NOT NULL auto_increment,<br \/>\n name varchar(10) ,<br \/>\n create_date timestamp NOT NULL default &#8216;0000-00-00 00:00:00&#8217;,<br \/>\n modified_date timestamp NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,<br \/>\n PRIMARY KEY  (id)<br \/>\n);<\/p>\n<p>\nmysql> desc test;<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;+&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br \/>\n| Field         | Type            | Null | Key | Default             | Extra                   |<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;+&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br \/>\n| id            | int(4) unsigned | NO   | PRI | NULL                | auto_increment              |<br \/>\n| name          | varchar(10)     | YES  |     | NULL                |                   |<br \/>\n| create_date   | timestamp       | NO   |     | 0000-00-00 00:00:00 |                   |<br \/>\n| modified_date | timestamp       | YES  |     | CURRENT_TIMESTAMP   | on update CURRENT_TIMESTAMP |<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;+&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br \/>\n4 rows in set (0.00 sec)<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>http:\/\/www.dbonline.jp\/mysql\/table\/index6.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>mysql\u3067timestamp\u578b\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u3068\u4f5c\u6210\u65e5\u6642\u306e\u4e21\u65b9\u3092\u8a18\u9332\u3057\u305f\u3044 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#038;#821&hellip;<a href=\"https:\/\/doodlenote.net\/?p=1168\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">mysql\u3067timestamp\u578b\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u3068\u4f5c\u6210\u65e5\u6642\u306e\u4e21\u65b9\u3092\u8a18\u9332<\/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":[6],"tags":[3],"class_list":["post-1168","post","type-post","status-publish","format-standard","hentry","category-program","tag-oldblog"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>mysql\u3067timestamp\u578b\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u3068\u4f5c\u6210\u65e5\u6642\u306e\u4e21\u65b9\u3092\u8a18\u9332 - Memolog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/doodlenote.net\/?p=1168\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"mysql\u3067timestamp\u578b\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u3068\u4f5c\u6210\u65e5\u6642\u306e\u4e21\u65b9\u3092\u8a18\u9332 - Memolog\" \/>\n<meta property=\"og:description\" content=\"mysql\u3067timestamp\u578b\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u3068\u4f5c\u6210\u65e5\u6642\u306e\u4e21\u65b9\u3092\u8a18\u9332\u3057\u305f\u3044 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&amp;#821&hellip;Continue reading mysql\u3067timestamp\u578b\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u3068\u4f5c\u6210\u65e5\u6642\u306e\u4e21\u65b9\u3092\u8a18\u9332\" \/>\n<meta property=\"og:url\" content=\"https:\/\/doodlenote.net\/?p=1168\" \/>\n<meta property=\"og:site_name\" content=\"Memolog\" \/>\n<meta property=\"article:published_time\" content=\"-0001-11-30T00:00:00+00:00\" \/>\n<meta name=\"author\" content=\"\u4ffa\u69d8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u4ffa\u69d8\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/doodlenote.net\/?p=1168#article\",\"isPartOf\":{\"@id\":\"https:\/\/doodlenote.net\/?p=1168\"},\"author\":{\"name\":\"\u4ffa\u69d8\",\"@id\":\"https:\/\/doodlenote.net\/#\/schema\/person\/b4d9e28d72f0b174ecabb474276c9cc1\"},\"headline\":\"mysql\u3067timestamp\u578b\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u3068\u4f5c\u6210\u65e5\u6642\u306e\u4e21\u65b9\u3092\u8a18\u9332\",\"datePublished\":\"-0001-11-30T00:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/doodlenote.net\/?p=1168\"},\"wordCount\":178,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/doodlenote.net\/#\/schema\/person\/b4d9e28d72f0b174ecabb474276c9cc1\"},\"keywords\":[\"OldBlog\"],\"articleSection\":[\"\u30d7\u30ed\u30b0\u30e9\u30e0\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/doodlenote.net\/?p=1168\",\"url\":\"https:\/\/doodlenote.net\/?p=1168\",\"name\":\"mysql\u3067timestamp\u578b\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u3068\u4f5c\u6210\u65e5\u6642\u306e\u4e21\u65b9\u3092\u8a18\u9332 - Memolog\",\"isPartOf\":{\"@id\":\"https:\/\/doodlenote.net\/#website\"},\"datePublished\":\"-0001-11-30T00:00:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/doodlenote.net\/?p=1168#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/doodlenote.net\/?p=1168\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/doodlenote.net\/?p=1168#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/doodlenote.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"mysql\u3067timestamp\u578b\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u3068\u4f5c\u6210\u65e5\u6642\u306e\u4e21\u65b9\u3092\u8a18\u9332\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/doodlenote.net\/#website\",\"url\":\"https:\/\/doodlenote.net\/\",\"name\":\"Memolog\",\"description\":\"\u6368\u3066\u308b\u306b\u306f\u60dc\u3057\u3044\u7a0b\u5ea6\u306e\u30b4\u30df\uff3e\uff3e\",\"publisher\":{\"@id\":\"https:\/\/doodlenote.net\/#\/schema\/person\/b4d9e28d72f0b174ecabb474276c9cc1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/doodlenote.net\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/doodlenote.net\/#\/schema\/person\/b4d9e28d72f0b174ecabb474276c9cc1\",\"name\":\"\u4ffa\u69d8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/doodlenote.net\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fcda4a2c8afdf7f8db4d55e3ba71ce95258d02a3522b2c9aae85dfc5b59e56ef?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fcda4a2c8afdf7f8db4d55e3ba71ce95258d02a3522b2c9aae85dfc5b59e56ef?s=96&d=mm&r=g\",\"caption\":\"\u4ffa\u69d8\"},\"logo\":{\"@id\":\"https:\/\/doodlenote.net\/#\/schema\/person\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"mysql\u3067timestamp\u578b\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u3068\u4f5c\u6210\u65e5\u6642\u306e\u4e21\u65b9\u3092\u8a18\u9332 - Memolog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/doodlenote.net\/?p=1168","og_locale":"ja_JP","og_type":"article","og_title":"mysql\u3067timestamp\u578b\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u3068\u4f5c\u6210\u65e5\u6642\u306e\u4e21\u65b9\u3092\u8a18\u9332 - Memolog","og_description":"mysql\u3067timestamp\u578b\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u3068\u4f5c\u6210\u65e5\u6642\u306e\u4e21\u65b9\u3092\u8a18\u9332\u3057\u305f\u3044 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#821&hellip;Continue reading mysql\u3067timestamp\u578b\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u3068\u4f5c\u6210\u65e5\u6642\u306e\u4e21\u65b9\u3092\u8a18\u9332","og_url":"https:\/\/doodlenote.net\/?p=1168","og_site_name":"Memolog","article_published_time":"-0001-11-30T00:00:00+00:00","author":"\u4ffa\u69d8","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u4ffa\u69d8","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/doodlenote.net\/?p=1168#article","isPartOf":{"@id":"https:\/\/doodlenote.net\/?p=1168"},"author":{"name":"\u4ffa\u69d8","@id":"https:\/\/doodlenote.net\/#\/schema\/person\/b4d9e28d72f0b174ecabb474276c9cc1"},"headline":"mysql\u3067timestamp\u578b\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u3068\u4f5c\u6210\u65e5\u6642\u306e\u4e21\u65b9\u3092\u8a18\u9332","datePublished":"-0001-11-30T00:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/doodlenote.net\/?p=1168"},"wordCount":178,"commentCount":0,"publisher":{"@id":"https:\/\/doodlenote.net\/#\/schema\/person\/b4d9e28d72f0b174ecabb474276c9cc1"},"keywords":["OldBlog"],"articleSection":["\u30d7\u30ed\u30b0\u30e9\u30e0"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/doodlenote.net\/?p=1168","url":"https:\/\/doodlenote.net\/?p=1168","name":"mysql\u3067timestamp\u578b\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u3068\u4f5c\u6210\u65e5\u6642\u306e\u4e21\u65b9\u3092\u8a18\u9332 - Memolog","isPartOf":{"@id":"https:\/\/doodlenote.net\/#website"},"datePublished":"-0001-11-30T00:00:00+00:00","breadcrumb":{"@id":"https:\/\/doodlenote.net\/?p=1168#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/doodlenote.net\/?p=1168"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/doodlenote.net\/?p=1168#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/doodlenote.net\/"},{"@type":"ListItem","position":2,"name":"mysql\u3067timestamp\u578b\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u3068\u4f5c\u6210\u65e5\u6642\u306e\u4e21\u65b9\u3092\u8a18\u9332"}]},{"@type":"WebSite","@id":"https:\/\/doodlenote.net\/#website","url":"https:\/\/doodlenote.net\/","name":"Memolog","description":"\u6368\u3066\u308b\u306b\u306f\u60dc\u3057\u3044\u7a0b\u5ea6\u306e\u30b4\u30df\uff3e\uff3e","publisher":{"@id":"https:\/\/doodlenote.net\/#\/schema\/person\/b4d9e28d72f0b174ecabb474276c9cc1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/doodlenote.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":["Person","Organization"],"@id":"https:\/\/doodlenote.net\/#\/schema\/person\/b4d9e28d72f0b174ecabb474276c9cc1","name":"\u4ffa\u69d8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/doodlenote.net\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fcda4a2c8afdf7f8db4d55e3ba71ce95258d02a3522b2c9aae85dfc5b59e56ef?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fcda4a2c8afdf7f8db4d55e3ba71ce95258d02a3522b2c9aae85dfc5b59e56ef?s=96&d=mm&r=g","caption":"\u4ffa\u69d8"},"logo":{"@id":"https:\/\/doodlenote.net\/#\/schema\/person\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/doodlenote.net\/index.php?rest_route=\/wp\/v2\/posts\/1168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doodlenote.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doodlenote.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doodlenote.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doodlenote.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1168"}],"version-history":[{"count":0,"href":"https:\/\/doodlenote.net\/index.php?rest_route=\/wp\/v2\/posts\/1168\/revisions"}],"wp:attachment":[{"href":"https:\/\/doodlenote.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doodlenote.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doodlenote.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}