{"id":136,"date":"2012-11-17T13:20:07","date_gmt":"2012-11-17T12:20:07","guid":{"rendered":"http:\/\/blog.techmedia.pl\/?p=136"},"modified":"2012-12-15T14:10:41","modified_gmt":"2012-12-15T13:10:41","slug":"mysql-kopia-tabeliklonowanie-tabel","status":"publish","type":"post","link":"https:\/\/www.techmedia.pl\/blog\/mysql-kopia-tabeliklonowanie-tabel\/","title":{"rendered":"MySQL &#8211; kopia tabeli, klonowanie tabel"},"content":{"rendered":"<p>Kopi\u0119 tabeli &#8222;tabela_1&#8221; mo\u017cemy utworzy\u0107 za pomoc\u0105 poni\u017cszego polecenia:<\/p>\n<pre>mysql&gt; <strong>CREATE TABLE tabela_2 LIKE tabela_1;<\/strong><\/pre>\n<p>Kopiowanie danych z tabeli &#8222;tabela_1&#8221; do tabeli &#8222;tabela_2&#8221; wykonujemy poni\u017cszym poleceniem:<\/p>\n<pre>mysql&gt; <strong>INSERT INTO tabela_2 SELECT * FROM tabela_1;<\/strong><\/pre>\n<p>Tabela &#8222;tabela_1&#8221; zosta\u0142a sklonowana.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kopi\u0119 tabeli &#8222;tabela_1&#8221; mo\u017cemy utworzy\u0107 za pomoc\u0105 poni\u017cszego polecenia: mysql&gt; CREATE TABLE tabela_2 LIKE tabela_1; Kopiowanie danych z tabeli &#8222;tabela_1&#8221; do tabeli &#8222;tabela_2&#8221; wykonujemy poni\u017cszym poleceniem: mysql&gt; INSERT INTO tabela_2 SELECT * FROM tabela_1; Tabela &#8222;tabela_1&#8221; zosta\u0142a sklonowana.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[15],"tags":[],"yst_prominent_words":[],"_links":{"self":[{"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/posts\/136"}],"collection":[{"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/comments?post=136"}],"version-history":[{"count":8,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/posts\/136\/revisions"}],"predecessor-version":[{"id":606,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/posts\/136\/revisions\/606"}],"wp:attachment":[{"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/media?parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/categories?post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/tags?post=136"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/yst_prominent_words?post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}