{"id":555,"date":"2009-12-27T13:42:04","date_gmt":"2009-12-27T13:42:04","guid":{"rendered":"http:\/\/www.mysqltutorial.org\/?page_id=555"},"modified":"2024-01-04T20:09:32","modified_gmt":"2024-01-05T03:09:32","slug":"mysql-views","status":"publish","type":"page","link":"https:\/\/www.mysqltutorial.org\/mysql-views\/","title":{"rendered":"MySQL Views"},"content":{"rendered":"\n<p><strong>Summary<\/strong>: in this tutorial, you will learn about MySQL views and how to manipulate views effectively.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction to MySQL Views<\/h2>\n\n\n\n<p>Let&#8217;s see the following tables <code>customers<\/code> and <code>payments<\/code> from the <a href=\"https:\/\/www.mysqltutorial.org\/getting-started-with-mysql\/mysql-sample-database\/\">sample database<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"384\" height=\"304\" src=\"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2019\/08\/customers-payments-1.png\" alt=\"\" class=\"wp-image-7975\" srcset=\"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2019\/08\/customers-payments-1.png 384w, https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2019\/08\/customers-payments-1-200x158.png 200w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/figure>\n\n\n\n<p>This <a href=\"https:\/\/www.mysqltutorial.org\/mysql-basics\/mysql-select-from\/\">query<\/a> returns data from both tables <code>customers<\/code> and <code>payments<\/code> using the <a href=\"https:\/\/www.mysqltutorial.org\/mysql-basics\/mysql-inner-join\/\">inner join<\/a>:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SELECT<\/span> \n    customerName, \n    checkNumber, \n    paymentDate, \n    amount\n<span class=\"hljs-keyword\">FROM<\/span>\n    customers\n<span class=\"hljs-keyword\">INNER<\/span> <span class=\"hljs-keyword\">JOIN<\/span>\n    payments <span class=\"hljs-keyword\">USING<\/span> (customerNumber);<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Here is the output:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"499\" height=\"256\" src=\"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2019\/08\/MySQL-View-example.png\" alt=\"\" class=\"wp-image-7976\" srcset=\"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2019\/08\/MySQL-View-example.png 499w, https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2019\/08\/MySQL-View-example-200x103.png 200w\" sizes=\"auto, (max-width: 499px) 100vw, 499px\" \/><\/figure>\n\n\n\n<p>Next time, if you want to get the same information including customer name, check number, payment date, and amount, you need to issue the same query again.<\/p>\n\n\n\n<p>One way to do this is to save the query in a file, either .txt or .sql file so that later you can open and execute it from MySQL Workbench or any other MySQL client tools.<\/p>\n\n\n\n<p>A better way to do this is to save the query in the database server and assign a name to it. This named query is called a <strong>database view,<\/strong> or simply, <strong>view<\/strong>.<\/p>\n\n\n\n<p>By definition, a view is a named query stored in the database catalog.<\/p>\n\n\n\n<p>To create a new view you use the <code><a href=\"https:\/\/www.mysqltutorial.org\/mysql-views\/mysql-create-view\/\">CREATE VIEW<\/a><\/code> statement. This statement creates a view <code>customerPayments<\/code> based on the above query above:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">VIEW<\/span> customerPayments\n<span class=\"hljs-keyword\">AS<\/span> \n<span class=\"hljs-keyword\">SELECT<\/span> \n    customerName, \n    checkNumber, \n    paymentDate, \n    amount\n<span class=\"hljs-keyword\">FROM<\/span>\n    customers\n<span class=\"hljs-keyword\">INNER<\/span> <span class=\"hljs-keyword\">JOIN<\/span>\n    payments <span class=\"hljs-keyword\">USING<\/span> (customerNumber);\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>After you execute the <code>CREATE VIEW<\/code> statement, MySQL creates the view and stores it in the database.<\/p>\n\n\n\n<p>Now, you can reference the view as a table in SQL statements. For example, you can query data from the <code>customerPayments<\/code> view using the <code>SELECT<\/code> statement:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SELECT<\/span> * <span class=\"hljs-keyword\">FROM<\/span> customerPayments;\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>As you can see, the syntax is much simpler.<\/p>\n\n\n\n<p>Note that a view does not physically store the data. When you issue the <code><a href=\"https:\/\/www.mysqltutorial.org\/mysql-basics\/mysql-select-from\/\">SELECT<\/a><\/code> statement against the view, MySQL executes the underlying query specified in the view&#8217;s definition and returns the result set. For this reason, sometimes, a view is referred to as a virtual table.<\/p>\n\n\n\n<p>MySQL allows you to create a view based on a <code>SELECT<\/code> statement that retrieves data from one or more tables. This picture illustrates a view based on columns of multiple tables:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"531\" height=\"343\" src=\"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2019\/08\/MySQL-View.png\" alt=\"MySQL View\" class=\"wp-image-7982\" srcset=\"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2019\/08\/MySQL-View.png 531w, https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2019\/08\/MySQL-View-200x129.png 200w\" sizes=\"auto, (max-width: 531px) 100vw, 531px\" \/><\/figure>\n<\/div>\n\n\n<p>In addition, MySQL even allows you to create a view that does not refer to any table. But you will rarely find this kind of view in practice.<\/p>\n\n\n\n<p>For example, you can create a view called <code>daysofweek<\/code> that return 7 days a week by executing the following query:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">VIEW<\/span> daysofweek (<span class=\"hljs-keyword\">day<\/span>) <span class=\"hljs-keyword\">AS<\/span>\n    <span class=\"hljs-keyword\">SELECT<\/span> <span class=\"hljs-string\">'Mon'<\/span> \n    <span class=\"hljs-keyword\">UNION<\/span> \n    <span class=\"hljs-keyword\">SELECT<\/span> <span class=\"hljs-string\">'Tue'<\/span>\n    <span class=\"hljs-keyword\">UNION<\/span> \n    <span class=\"hljs-keyword\">SELECT<\/span> <span class=\"hljs-string\">'Web'<\/span>\n    <span class=\"hljs-keyword\">UNION<\/span> \n    <span class=\"hljs-keyword\">SELECT<\/span> <span class=\"hljs-string\">'Thu'<\/span>\n    <span class=\"hljs-keyword\">UNION<\/span> \n    <span class=\"hljs-keyword\">SELECT<\/span> <span class=\"hljs-string\">'Fri'<\/span>\n    <span class=\"hljs-keyword\">UNION<\/span> \n    <span class=\"hljs-keyword\">SELECT<\/span> <span class=\"hljs-string\">'Sat'<\/span>\n    <span class=\"hljs-keyword\">UNION<\/span> \n    <span class=\"hljs-keyword\">SELECT<\/span> <span class=\"hljs-string\">'Sun'<\/span>;\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>You can query data from the <code>daysofweek<\/code> view as follows:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SELECT<\/span> * <span class=\"hljs-keyword\">FROM<\/span> daysofweek;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>This picture shows the output:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"59\" height=\"138\" src=\"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2019\/08\/MySQL-View-reference-no-table-example.png\" alt=\"\" class=\"wp-image-7978\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Advantages of MySQL Views<\/h2>\n\n\n\n<p>MySQL views bring the following advantages.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1) Simplify complex query<\/h3>\n\n\n\n<p>Views help simplify complex queries. If you have any frequently used complex query, you can create a view based on it so that you can reference the view by using a simple <code>SELECT<\/code> statement instead of typing the query all over again.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2) Make the business logic consistent<\/h3>\n\n\n\n<p>Suppose you have to repeatedly write the same formula in every query.&nbsp; Or you have a query that has complex business logic. To make this logic consistent across queries, you can use a view to store the calculation and hide the complexity.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3) Add extra security layers<\/h3>\n\n\n\n<p>A table may expose a lot of data including sensitive data such as personal and banking information.<\/p>\n\n\n\n<p>By using views and privileges, you can limit which data users can access by exposing only the necessary data to them.<\/p>\n\n\n\n<p>For example, the table <code>employees<\/code> may contain SSN and address information, which should be accessible by the HR department only.<\/p>\n\n\n\n<p>To expose general information such as first name, last name, and gender to the General Administration (GA) department, you can create a view based on these columns and grant the users of the GA department the view, not the entire table <code>employees<\/code> .<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4) Enable backward compatibility<\/h3>\n\n\n\n<p>In legacy systems, views can enable backward compatibility.<\/p>\n\n\n\n<p>Suppose, you want to normalize a big table into many smaller ones. And you don&#8217;t want to impact the current applications that reference the table.<\/p>\n\n\n\n<p>In this case, you can create a view whose name is the same as the table based on the new tables so that all applications can reference the view as if it were a table.<\/p>\n\n\n\n<p>Note that a view and table cannot have the same name so you need to <a href=\"https:\/\/www.mysqltutorial.org\/mysql-drop-table\">drop the table<\/a> first before creating a view whose name is the same as the deleted table.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Managing views in MySQL<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.mysqltutorial.org\/mysql-views\/mysql-create-view\/\">Create views<\/a> &#8211; show you how to use the <code>CREATE VIEW<\/code> statement to create a new view in the database.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.mysqltutorial.org\/mysql-views\/mysql-view-processing-algorithms\/\">Understand view processing algorithms<\/a> &#8211; learn how MySQL processes a view.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.mysqltutorial.org\/mysql-views\/mysql-updatable-views\/\">Create updatable views<\/a> &#8211; learn how to create updatable views.<\/li>\n\n\n\n<li>Create views with a <code><a href=\"https:\/\/www.mysqltutorial.org\/mysql-views\/mysql-view-with-check-option\/\">WITH CHECK OPTION<\/a><\/code> &#8211; ensure the consistency of views using the <code>WITH CHECK OPTION<\/code> clause.<\/li>\n\n\n\n<li><code><a href=\"https:\/\/www.mysqltutorial.org\/mysql-view-local-cascaded-in-with-check-option\">LOCAL &amp; CASCADED<\/a><\/code> and <code>WITH CHECK OPTION<\/code> &#8211; specify the scope of the check with <code>LOCAL<\/code> and <code>CASCADED<\/code> options.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.mysqltutorial.org\/mysql-views\/mysql-show-view\/\">Show views<\/a> &#8211; provide ways to find views in a database.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.mysqltutorial.org\/mysql-views\/mysql-show-create-view\/\">Show create view<\/a> &#8211; learn how to display the statement that creates a view.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.mysqltutorial.org\/mysql-views\/mysql-rename-view\/\">Rename views<\/a> &#8211; change the name of a view to another.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.mysqltutorial.org\/mysql-views\/mysql-drop-view\/\">Drop views<\/a> &#8211; guide you on how to remove one or more existing views.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial introduces you to MySQL Views, which are named query stored in the database, and shows you step by step on how to manage views effectively.<\/p>\n","protected":false},"author":2,"featured_media":10046,"parent":0,"menu_order":7,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-555","page","type-page","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>MySQL Views<\/title>\n<meta name=\"description\" content=\"This tutorial introduces you to MySQL Views, which are named queries stored in the database, and shows you how to manage views effectively.\" \/>\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\/mysql-views\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MySQL Views\" \/>\n<meta property=\"og:description\" content=\"This tutorial introduces you to MySQL Views, which are named queries stored in the database, and shows you how to manage views effectively.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mysqltutorial.org\/mysql-views\/\" \/>\n<meta property=\"og:site_name\" content=\"MySQL Tutorial\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-05T03:09:32+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-views\\\/\",\"url\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-views\\\/\",\"name\":\"MySQL Views\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-views\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-views\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mysqltutorial.org\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/mysql-views.svg\",\"datePublished\":\"2009-12-27T13:42:04+00:00\",\"dateModified\":\"2024-01-05T03:09:32+00:00\",\"description\":\"This tutorial introduces you to MySQL Views, which are named queries stored in the database, and shows you how to manage views effectively.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-views\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-views\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-views\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.mysqltutorial.org\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/mysql-views.svg\",\"contentUrl\":\"https:\\\/\\\/www.mysqltutorial.org\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/mysql-views.svg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-views\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.mysqltutorial.org\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MySQL Views\"}]},{\"@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":"MySQL Views","description":"This tutorial introduces you to MySQL Views, which are named queries stored in the database, and shows you how to manage views effectively.","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\/mysql-views\/","og_locale":"en_US","og_type":"article","og_title":"MySQL Views","og_description":"This tutorial introduces you to MySQL Views, which are named queries stored in the database, and shows you how to manage views effectively.","og_url":"https:\/\/www.mysqltutorial.org\/mysql-views\/","og_site_name":"MySQL Tutorial","article_modified_time":"2024-01-05T03:09:32+00:00","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.mysqltutorial.org\/mysql-views\/","url":"https:\/\/www.mysqltutorial.org\/mysql-views\/","name":"MySQL Views","isPartOf":{"@id":"https:\/\/www.mysqltutorial.org\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.mysqltutorial.org\/mysql-views\/#primaryimage"},"image":{"@id":"https:\/\/www.mysqltutorial.org\/mysql-views\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2021\/04\/mysql-views.svg","datePublished":"2009-12-27T13:42:04+00:00","dateModified":"2024-01-05T03:09:32+00:00","description":"This tutorial introduces you to MySQL Views, which are named queries stored in the database, and shows you how to manage views effectively.","breadcrumb":{"@id":"https:\/\/www.mysqltutorial.org\/mysql-views\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mysqltutorial.org\/mysql-views\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mysqltutorial.org\/mysql-views\/#primaryimage","url":"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2021\/04\/mysql-views.svg","contentUrl":"https:\/\/www.mysqltutorial.org\/wp-content\/uploads\/2021\/04\/mysql-views.svg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.mysqltutorial.org\/mysql-views\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.mysqltutorial.org\/"},{"@type":"ListItem","position":2,"name":"MySQL Views"}]},{"@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\/555","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=555"}],"version-history":[{"count":3,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages\/555\/revisions"}],"predecessor-version":[{"id":14210,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages\/555\/revisions\/14210"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/media\/10046"}],"wp:attachment":[{"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/media?parent=555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}