{"id":568,"date":"2018-05-19T21:29:22","date_gmt":"2018-05-19T12:29:22","guid":{"rendered":"https:\/\/yuis-programming.com\/?p=568"},"modified":"2018-04-28T00:29:47","modified_gmt":"2018-04-27T15:29:47","slug":"sql%e3%81%a7wordpress%e3%81%ab%e8%a8%98%e4%ba%8b%e6%8a%95%e7%a8%bf%e3%81%97%e3%81%9f%e3%81%84%e3%81%91%e3%81%a9%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84%e3%81%bf%e3%81%9f%e3%81%84%e3%80%82","status":"publish","type":"post","link":"https:\/\/yuis-programming.com\/?p=568","title":{"rendered":"SQL\u3067wordpress\u306b\u8a18\u4e8b\u6295\u7a3f\u3057\u305f\u3044\u3051\u3069\u3067\u304d\u306a\u3044\u307f\u305f\u3044\u3002"},"content":{"rendered":"<p>wordpress\u306bWorkbench\u3092\u4f7f\u3063\u3066SQL\u3067insert\u3067\u304d\u308b\u306e\u304b\u306a\u30fc\u3063\u3066\u601d\u3063\u3066\u8a66\u3057\u3066\u307f\u305f\u3051\u3069\u3001\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u3059\u3002\u3068\u3044\u3046\u304a\u8a71\u3067\u3059\u3002<\/p>\n<p>wordpress\u306bpost\u3059\u308b\u3063\u3066\u306a\u308b\u3068\u3001\u50d5\u306e\u74b0\u5883\u306e\u5834\u5408\u3001\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code>insert into wp_posts (post_title,post_content_filtered) value ('\u30bf\u30a4\u30c8\u30eb','## h2 \\n content.')  ;\n<\/code><\/pre>\n<p>\u305f\u3060\u3001\u3084\u3063\u3071\u308a\u3053\u308c\u3092\u5b9f\u884c\u3057\u305f\u3060\u3051\u3067\u306f\u3001\u4f55\u3082\u4ed6\u306e\u5024\u304c\u66f4\u65b0\u3055\u308c\u306a\u3044\u306e\u3067\u3001\u3060\u3081\u3067\u3059\u306d\u3002<\/p>\n<p>\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3082\u66f4\u65b0\u3055\u308c\u306a\u3044\u3057\u3001<code>post_content<\/code>\u3063\u3066\u3044\u3046\u3001\u8a18\u4e8b\u672c\u4f53\u304c\u683c\u7d0d\u3055\u308c\u308b\u30ab\u30e9\u30e0\u3082\u5909\u5316\u306a\u3057\u3067\u3059\u3002<\/p>\n<p>\u3069\u3046\u3057\u3066\u3082\u8a18\u4e8b\u6295\u7a3f\u753b\u9762\u5916\u304b\u3089SQL\u3063\u307d\u304f\u6295\u7a3f\u3057\u305f\u3044\u306e\u306a\u3089\u3001PHP\u306ewordpress\u306eOR\u30de\u30c3\u30d1\u30fc\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001wordpress\u306eload.php(\u3060\u3063\u3051\uff1f)\u3092include\u3057\u3066<code>wpdb<\/code>\u3092\u4f7f\u7528\u3059\u308b\u306e\u304c\u3001\u738b\u9053\u3067\u3059\u3002<br \/>\n\u3042\u3068SQL\u95a2\u4fc2\u306a\u304f\u306a\u308b\u3051\u3069WP-CLI\u3068\u304b\u3001\u3067\u3059\u306d\u3002<\/p>\n<p>\u305f\u3060\u305d\u308c\u3060\u3068\u3001SQL\u3060\u3051\u3092\u4f7f\u7528\u3057\u3066\u8a18\u4e8b\u3092\u516c\u958b\u3057\u305f\u3044\uff01\u3063\u3066\u3044\u3046\u4eca\u56de\u306e\u8da3\u65e8\u3068\u9055\u3046\u306e\u3067\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4e0d\u53ef\u80fd\u3067\u3059\u306d\u30fc\u3068\u3044\u3046\u304a\u8a71\u3067\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>wordpress\u306bWorkbench\u3092\u4f7f\u3063\u3066SQL\u3067insert\u3067\u304d\u308b\u306e\u304b\u306a\u30fc\u3063\u3066\u601d\u3063\u3066\u8a66\u3057\u3066\u307f\u305f\u3051\u3069\u3001\u3067\u304d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"acf":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8Rxwo-9a","_links":{"self":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/568"}],"collection":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=568"}],"version-history":[{"count":1,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/568\/revisions"}],"predecessor-version":[{"id":569,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/568\/revisions\/569"}],"wp:attachment":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}