{"id":1977,"date":"2023-11-28T08:55:29","date_gmt":"2023-11-27T23:55:29","guid":{"rendered":"https:\/\/www.kwonline.org\/memo2\/?p=1977"},"modified":"2023-11-28T08:58:36","modified_gmt":"2023-11-27T23:58:36","slug":"load-postgresql-sample-db-dvdrental","status":"publish","type":"post","link":"https:\/\/www.kwonline.org\/memo2\/2023\/11\/28\/load-postgresql-sample-db-dvdrental\/","title":{"rendered":"PostgreSQL \u306e\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u7acb\u3066\u308b"},"content":{"rendered":"<p>&nbsp;<br \/>\n\u306a\u3093\u3084\u304b\u3093\u3084\u4f7f\u3046 Postgres.<br \/>\n\u63a5\u7d9a\u30c6\u30b9\u30c8\u3067\u4f7f\u3046\u306e\u3067\u30e1\u30e2\u3002<\/p>\n<p>PostgreSQL Tutorial \u306e \u30b5\u30f3\u30d7\u30ebDB\u3092\u4f7f\u3046\u3002<br \/>\n\u305d\u306e\u540d\u3082 &#8220;dvdrental&#8221;<\/p>\n<p><a href=\"https:\/\/www.postgresqltutorial.com\/postgresql-getting-started\/postgresql-sample-database\/\" rel=\"noopener\" target=\"_blank\">PostgreSQL Sample Database<\/a><\/p>\n<p>\u307e\u305a\u306f\u4e0a\u8a18\u30b5\u30a4\u30c8\u304b\u3089 dvdrental.zip \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u89e3\u7b54\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nwget https:\/\/www.postgresqltutorial.com\/wp-content\/uploads\/2019\/05\/dvdrental.zip\r\nunzip dvdrental.zip\r\n<\/pre>\n<p>\u7d9a\u3044\u3066 PSQL \u306b dvdrental schema \u3092\u30ed\u30fc\u30c9\u3059\u308b\u305f\u3081\u306e database \u3092\u4f5c\u308b\u3002<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\ncreate database dvdrental;\r\nexit;\r\n<\/pre>\n<p>\u6700\u5f8c\u306b\u3001dvdrental.tar \u3092 pg_restore \u3067\u30ed\u30fc\u30c9\u3059\u308c\u3070OK<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\npg_restore -U postgres -d dvdrental dvdrental.tar\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u306a\u3093\u3084\u304b\u3093\u3084\u4f7f\u3046 Postgres. \u63a5\u7d9a\u30c6\u30b9\u30c8\u3067\u4f7f\u3046\u306e\u3067\u30e1\u30e2\u3002 PostgreSQL Tutorial \u306e \u30b5\u30f3\u30d7\u30ebDB\u3092\u4f7f\u3046\u3002 \u305d\u306e\u540d\u3082 &#8220;dvdrental&#8221; PostgreS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,26,20],"tags":[],"class_list":["post-1977","post","type-post","status-publish","format-standard","hentry","category-linux","category-postgresql","category-sql"],"_links":{"self":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts\/1977","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/comments?post=1977"}],"version-history":[{"count":3,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts\/1977\/revisions"}],"predecessor-version":[{"id":1980,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts\/1977\/revisions\/1980"}],"wp:attachment":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/media?parent=1977"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/categories?post=1977"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/tags?post=1977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}