{"id":2946,"date":"2013-01-16T23:23:30","date_gmt":"2013-01-17T07:23:30","guid":{"rendered":"http:\/\/www.mysqltutorial.org\/?page_id=2946"},"modified":"2023-09-24T21:09:50","modified_gmt":"2023-09-25T04:09:50","slug":"perl-mysql-create-table","status":"publish","type":"page","link":"https:\/\/www.mysqltutorial.org\/perl-mysql\/perl-mysql-create-table\/","title":{"rendered":"Perl MySQL Create Table"},"content":{"rendered":"\n<p><b>Summary<\/b>: in this tutorial, we will show you how to use the Perl DBI API to create tables in a MySQL database.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Creating a table steps<\/h2>\n\n\n\n<p>Before doing anything else with the databases e.g., <a href=\"https:\/\/www.mysqltutorial.org\/mysql-basics\/mysql-insert\/\">insert<\/a>, <a href=\"https:\/\/www.mysqltutorial.org\/mysql-basics\/mysql-update\/\">update<\/a>, <a href=\"https:\/\/www.mysqltutorial.org\/mysql-basics\/mysql-delete\/\">delete<\/a>, and <a href=\"https:\/\/www.mysqltutorial.org\/mysql-basics\/mysql-select-from\/\">query data<\/a>, you need to <a href=\"https:\/\/www.mysqltutorial.org\/mysql-basics\/mysql-create-table\/\">create new tables<\/a> to store the data.<\/p>\n\n\n\n<p>To create a new table, you use the following steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Connect to the MySQL database.<\/li>\n\n\n\n<li>Execute the <a title=\"MySQL CREATE TABLE\" href=\"https:\/\/www.mysqltutorial.org\/mysql-basics\/mysql-create-table\/\">CREATE TABLE statement<\/a> by calling the&nbsp; <code>do()<\/code> method of the database handle object.<\/li>\n\n\n\n<li>Disconnect from the MySQL database.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Creating a table example<\/h2>\n\n\n\n<p>We are going to create three tables in the <code>perlmysqldb<\/code> sample database:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>links<\/strong>: stores URLs including link_id, title, URL, and target.<\/li>\n\n\n\n<li><strong>tags<\/strong>: stores tags for links including tag_id and tag.<\/li>\n\n\n\n<li><strong>link_tags<\/strong>: stores the relationship between the links and tags tables, containing two fields link_id and tag_id.<\/li>\n<\/ul>\n\n\n\n<p>The following diagram illustrates the tables:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"461\" height=\"160\" src=\"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2013\/06\/Perl-MySQL-Create-Table-Sample-Tables.png\" alt=\"Perl MySQL Create Table - Sample Tables\" class=\"wp-image-2948\" title=\"Perl MySQL Create Table - Sample Tables\" srcset=\"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2013\/06\/Perl-MySQL-Create-Table-Sample-Tables.png 461w, https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2013\/06\/Perl-MySQL-Create-Table-Sample-Tables-300x104.png 300w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/figure>\n\n\n\n<p>The following is the Perl script that creates the tables:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"Perl\" data-shcb-language-slug=\"perl\"><span><code class=\"hljs language-perl\"><span class=\"hljs-comment\">#!\/usr\/bin\/perl<\/span>\n<span class=\"hljs-keyword\">use<\/span> strict;\n<span class=\"hljs-keyword\">use<\/span> warnings;\n<span class=\"hljs-keyword\">use<\/span> v5.<span class=\"hljs-number\">10<\/span>; <span class=\"hljs-comment\"># for say() function<\/span>\n\n<span class=\"hljs-keyword\">use<\/span> DBI;\n\n<span class=\"hljs-keyword\">say<\/span> <span class=\"hljs-string\">\"Perl MySQL Create Table Demo\"<\/span>;\n\n<span class=\"hljs-comment\"># MySQL database configurations<\/span>\n<span class=\"hljs-keyword\">my<\/span> $dsn = <span class=\"hljs-string\">\"DBI:mysql:perlmysqldb\"<\/span>;\n<span class=\"hljs-keyword\">my<\/span> $username = <span class=\"hljs-string\">\"root\"<\/span>;\n<span class=\"hljs-keyword\">my<\/span> $password = <span class=\"hljs-string\">''<\/span>;\n\n<span class=\"hljs-comment\"># connect to MySQL database<\/span>\n<span class=\"hljs-keyword\">my<\/span> %attr = (<span class=\"hljs-string\">PrintError=&gt;<\/span><span class=\"hljs-number\">0<\/span>, <span class=\"hljs-string\">RaiseError=&gt;<\/span><span class=\"hljs-number\">1<\/span>);\n\n<span class=\"hljs-keyword\">my<\/span> $dbh = DBI-&gt;<span class=\"hljs-keyword\">connect<\/span>($dsn,$username,$password, \\%attr);\n\n<span class=\"hljs-comment\"># create table statements<\/span>\n<span class=\"hljs-keyword\">my<\/span> @ddl =     (\n\t\t<span class=\"hljs-comment\"># create tags table<\/span>\n\t\t<span class=\"hljs-string\">\"CREATE TABLE tags (\n\t\t\ttag_id int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,\n\t\t\ttag varchar(255) NOT NULL\n\t        ) ENGINE=InnoDB;\"<\/span>,\n\t       <span class=\"hljs-comment\"># create links table<\/span>\n\t       <span class=\"hljs-string\">\"CREATE TABLE links (\n\t\t  link_id int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,\n\t\t  title varchar(255) NOT NULL,\n\t\t  url varchar(255) NOT NULL,\n\t\t  target varchar(45) NOT NULL\n\t\t) ENGINE=InnoDB;\"<\/span>,\n\t\t<span class=\"hljs-comment\"># create link_tags table<\/span>\n\t\t<span class=\"hljs-string\">\"CREATE TABLE link_tags (\n\t\t  link_id int(11) NOT NULL,\n\t\t  tag_id int(11) NOT NULL,\n\t\t  PRIMARY KEY (link_id,tag_id),\n\t\t  KEY fk_link_idx (link_id),\n\t\t  KEY fk_tag_idx (tag_id),\n\t\t  CONSTRAINT fk_tag FOREIGN KEY (tag_id) \n\t\t     REFERENCES tags (tag_id),\n\t\t  CONSTRAINT fk_link FOREIGN KEY (link_id) \n\t\t\t REFERENCES links (link_id) \n\t\t) ENGINE=InnoDB\"<\/span>\n\t       );\n\n<span class=\"hljs-comment\"># execute all create table statements\t       <\/span>\n<span class=\"hljs-keyword\">for<\/span> <span class=\"hljs-keyword\">my<\/span> $sql(@ddl){\n  $dbh-&gt;<span class=\"hljs-keyword\">do<\/span>($sql);\n}\t       \n\n<span class=\"hljs-keyword\">say<\/span> <span class=\"hljs-string\">\"All tables created successfully!\"<\/span>;\n\n<span class=\"hljs-comment\"># disconnect from the MySQL database<\/span>\n$dbh-&gt;disconnect();<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Perl<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">perl<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>How it works.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First, create a connection to the <code>perlmysqldb<\/code> database by using the&nbsp; <code>connect()<\/code> method.<\/li>\n\n\n\n<li>Next, define an array&nbsp; <code>@ddl<\/code> that contains three&nbsp; <code><a href=\"https:\/\/www.mysqltutorial.org\/mysql-basics\/mysql-create-table\/\">CREATE TABLE<\/a><\/code> statements.<\/li>\n\n\n\n<li>Then, call\u00a0 <code>do()<\/code> method of the database handles the object to execute each\u00a0 <code>CREATE TABLE<\/code> statement inside the loop. We often use the\u00a0 <code>do()<\/code> method for executing a non-select statement that does not return a result set.<\/li>\n\n\n\n<li>After that, display a message to indicate that all tables were created successfully.<\/li>\n\n\n\n<li>Finally, disconnect from the database.<\/li>\n<\/ul>\n\n\n\n<p>The output of the script is as follows:<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">Perl MySQL Create Table Demo\nAll tables created successfully!<\/code><\/span><\/pre>\n\n\n<p>Now, you can check the <code>perlmysqldb<\/code> database to verify if the tables have been created successfully.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"151\" height=\"113\" src=\"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2013\/06\/perl-mysql-create-table-example.png\" alt=\"Perl MySQL Create Table example\" class=\"wp-image-2947\" title=\"Perl MySQL Create Table example\"\/><\/figure>\n\n\n\n<p>In this tutorial, you have learned how to create new tables from a Perl program in a MySQL database by using the&nbsp; <code>do()<\/code> method of the database handle object.<\/p>\n<div class=\"helpful-block-content\" data-title=\"\">\n\t<header>\n\t\t<div class=\"wth-question\">Was this tutorial helpful? <\/div>\n\t\t<div class=\"wth-thumbs\">\n\t\t\t<button\n\t\t\t\tdata-post=\"2946\"\n\t\t\t\tdata-post-url=\"https:\/\/www.mysqltutorial.org\/perl-mysql\/perl-mysql-create-table\/\"\n\t\t\t\tdata-post-title=\"Perl MySQL Create Table\"\n\t\t\t\tdata-response=\"1\"\n\t\t\t\tclass=\"wth-btn-rounded wth-yes-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tclass=\"feather feather-thumbs-up block w-full h-full\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> Yes <\/span>\n\t\t\t<\/button>\n\n\t\t\t<button\n\t\t\t\tdata-response=\"0\"\n\t\t\t\tdata-post=\"2946\"\n\t\t\t\tdata-post-url=\"https:\/\/www.mysqltutorial.org\/perl-mysql\/perl-mysql-create-table\/\"\n\t\t\t\tdata-post-title=\"Perl MySQL Create Table\"\n\t\t\t\tclass=\"wth-btn-rounded wth-no-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> No <\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t<\/header>\n\n\t<div class=\"wth-form hidden\">\n\t\t<div class=\"wth-form-wrapper\">\n\t\t\t<div class=\"wth-title\"><\/div>\n\t\t\t\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\n\t\t\t<button class=\"btn btn-primary wth-btn-submit\">Send<\/button>\n\t\t\t<button class=\"btn wth-btn-cancel\">Cancel<\/button>\n\t\t\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to create new tables in a MySQL database by using Perl DBI API.<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":2938,"menu_order":1,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-2946","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Perl MySQL Create Table Tutorial<\/title>\n<meta name=\"description\" content=\"This Perl MySQL Create Table tutorial shows you how to create new tables in a MySQL database by using Perl DBI API.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mysqltutorial.org\/perl-mysql\/perl-mysql-create-table\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Perl MySQL Create Table Tutorial\" \/>\n<meta property=\"og:description\" content=\"This Perl MySQL Create Table tutorial shows you how to create new tables in a MySQL database by using Perl DBI API.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mysqltutorial.org\/perl-mysql\/perl-mysql-create-table\/\" \/>\n<meta property=\"og:site_name\" content=\"MySQL Tutorial\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-25T04:09:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2013\/06\/Perl-MySQL-Create-Table-Sample-Tables.png\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/perl-mysql\\\/perl-mysql-create-table\\\/\",\"url\":\"https:\\\/\\\/www.mysqltutorial.org\\\/perl-mysql\\\/perl-mysql-create-table\\\/\",\"name\":\"Perl MySQL Create Table Tutorial\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/perl-mysql\\\/perl-mysql-create-table\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/perl-mysql\\\/perl-mysql-create-table\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mysqltutorial.org\\\/wp-content\\\/uploads\\\/2013\\\/06\\\/Perl-MySQL-Create-Table-Sample-Tables.png\",\"datePublished\":\"2013-01-17T07:23:30+00:00\",\"dateModified\":\"2023-09-25T04:09:50+00:00\",\"description\":\"This Perl MySQL Create Table tutorial shows you how to create new tables in a MySQL database by using Perl DBI API.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/perl-mysql\\\/perl-mysql-create-table\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mysqltutorial.org\\\/perl-mysql\\\/perl-mysql-create-table\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/perl-mysql\\\/perl-mysql-create-table\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.mysqltutorial.org\\\/wp-content\\\/uploads\\\/2013\\\/06\\\/Perl-MySQL-Create-Table-Sample-Tables.png\",\"contentUrl\":\"https:\\\/\\\/www.mysqltutorial.org\\\/wp-content\\\/uploads\\\/2013\\\/06\\\/Perl-MySQL-Create-Table-Sample-Tables.png\",\"width\":461,\"height\":160,\"caption\":\"Perl MySQL Transaction - Sample Tables\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/perl-mysql\\\/perl-mysql-create-table\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.mysqltutorial.org\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Perl MySQL Tutorial\",\"item\":\"https:\\\/\\\/www.mysqltutorial.org\\\/perl-mysql\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Perl MySQL Create Table\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/#website\",\"url\":\"https:\\\/\\\/www.mysqltutorial.org\\\/\",\"name\":\"MySQL Tutorial\",\"description\":\"A comprehensive MySQL Tutorial\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.mysqltutorial.org\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Perl MySQL Create Table Tutorial","description":"This Perl MySQL Create Table tutorial shows you how to create new tables in a MySQL database by using Perl DBI API.","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:\/\/www.mysqltutorial.org\/perl-mysql\/perl-mysql-create-table\/","og_locale":"en_US","og_type":"article","og_title":"Perl MySQL Create Table Tutorial","og_description":"This Perl MySQL Create Table tutorial shows you how to create new tables in a MySQL database by using Perl DBI API.","og_url":"https:\/\/www.mysqltutorial.org\/perl-mysql\/perl-mysql-create-table\/","og_site_name":"MySQL Tutorial","article_modified_time":"2023-09-25T04:09:50+00:00","og_image":[{"url":"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2013\/06\/Perl-MySQL-Create-Table-Sample-Tables.png","type":"","width":"","height":""}],"twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.mysqltutorial.org\/perl-mysql\/perl-mysql-create-table\/","url":"https:\/\/www.mysqltutorial.org\/perl-mysql\/perl-mysql-create-table\/","name":"Perl MySQL Create Table Tutorial","isPartOf":{"@id":"https:\/\/www.mysqltutorial.org\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.mysqltutorial.org\/perl-mysql\/perl-mysql-create-table\/#primaryimage"},"image":{"@id":"https:\/\/www.mysqltutorial.org\/perl-mysql\/perl-mysql-create-table\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2013\/06\/Perl-MySQL-Create-Table-Sample-Tables.png","datePublished":"2013-01-17T07:23:30+00:00","dateModified":"2023-09-25T04:09:50+00:00","description":"This Perl MySQL Create Table tutorial shows you how to create new tables in a MySQL database by using Perl DBI API.","breadcrumb":{"@id":"https:\/\/www.mysqltutorial.org\/perl-mysql\/perl-mysql-create-table\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mysqltutorial.org\/perl-mysql\/perl-mysql-create-table\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mysqltutorial.org\/perl-mysql\/perl-mysql-create-table\/#primaryimage","url":"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2013\/06\/Perl-MySQL-Create-Table-Sample-Tables.png","contentUrl":"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2013\/06\/Perl-MySQL-Create-Table-Sample-Tables.png","width":461,"height":160,"caption":"Perl MySQL Transaction - Sample Tables"},{"@type":"BreadcrumbList","@id":"https:\/\/www.mysqltutorial.org\/perl-mysql\/perl-mysql-create-table\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.mysqltutorial.org\/"},{"@type":"ListItem","position":2,"name":"Perl MySQL Tutorial","item":"https:\/\/www.mysqltutorial.org\/perl-mysql\/"},{"@type":"ListItem","position":3,"name":"Perl MySQL Create Table"}]},{"@type":"WebSite","@id":"https:\/\/www.mysqltutorial.org\/#website","url":"https:\/\/www.mysqltutorial.org\/","name":"MySQL Tutorial","description":"A comprehensive MySQL Tutorial","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mysqltutorial.org\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages\/2946","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/comments?post=2946"}],"version-history":[{"count":1,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages\/2946\/revisions"}],"predecessor-version":[{"id":10576,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages\/2946\/revisions\/10576"}],"up":[{"embeddable":true,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages\/2938"}],"wp:attachment":[{"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/media?parent=2946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}