{"id":33,"date":"2022-03-22T14:05:17","date_gmt":"2022-03-22T06:05:17","guid":{"rendered":"http:\/\/47.118.40.97:8082\/?p=33"},"modified":"2022-04-06T15:44:03","modified_gmt":"2022-04-06T07:44:03","slug":"mysql","status":"publish","type":"post","link":"http:\/\/danielw.top\/?p=33","title":{"rendered":"MySQL"},"content":{"rendered":"<h4>MySQL\u6570\u636e\u7c7b\u578b<\/h4>\n<h5>\u6574\u578b<\/h5>\n<p><img decoding=\"async\" src=\"http:\/\/img.danielw.top\/image-20220322132436823.png\" alt=\"image-20220322132436823\" \/><\/p>\n<pre><code class=\"language-mysql\">drop table if exists test_tinyint;\ncreate table test_tinyint (\n    num tinyint\n) engine=innodb charset=utf8;\n\ninsert into test_tinyint values(-100);\ninsert into test_tinyint values(255);<\/code><\/pre>\n<p>\u6267\u884c\u7b2c7\u884c\u7684\u4ee3\u7801\u65f6\u5019\u62a5\u9519&quot;Out of range value for column 'num' at row 1&quot;\uff0c\u5373\u5f88\u6e05\u695a\u7684\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u63d2\u5165\u7684\u6570\u5b57\u8303\u56f4\u8d8a\u754c\u4e86\uff0c\u8fd9\u4e5f\u540c\u6837\u53cd\u6620\u51fa<strong>MySQL\u4e2d\u6574\u578b\u9ed8\u8ba4\u662f\u5e26\u7b26\u53f7\u7684<\/strong><\/p>\n<p>\u628a\u7b2c3\u884c\u7684num\u5b57\u6bb5\u5b9a\u4e49\u6539\u4e3a&quot;num tinyint unsigned&quot;\u7b2c7\u7684\u63d2\u5165\u5c31\u4e0d\u4f1a\u62a5\u9519\u4e86\uff0c\u4f46\u662f\u7b2c6\u884c\u7684\u63d2\u5165-100\u53c8\u62a5\u9519\u4e86\uff0c\u56e0\u4e3a\u65e0\u7b26\u53f7\u6574\u578b\u662f\u65e0\u6cd5\u8868\u793a\u8d1f\u6570\u7684<\/p>\n<h5>\u6d6e\u70b9\u578b<\/h5>\n<p><img decoding=\"async\" src=\"http:\/\/img.danielw.top\/image-20220322132514686.png\" alt=\"image-20220322132514686\" \/><\/p>\n<pre><code class=\"language-mysql\">drop table if exists test_float;\ncreate table test_float (\n    num float(5, 2)\n) engine=innodb charset=utf8;\n\ninsert into test_float values(1.233);\ninsert into test_float values(1.237);\ninsert into test_float values(10.233);\ninsert into test_float values(100.233);\ninsert into test_float values(1000.233);\ninsert into test_float values(10000.233);\ninsert into test_float values(100000.233);\n\nselect * from test_float;<\/code><\/pre>\n<p>\u663e\u793a\u7ed3\u679c\u4e3a:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/img.danielw.top\/image-20220322132913209.png\" alt=\"image-20220322132913209\" \/><\/p>\n<p>\u4ece\u8fd9\u4e2a\u7ed3\u679c\u6211\u4eec\u603b\u7ed3\u4e00\u4e0bfloat(M,D)\u3001double(M\u3001D)\u7684\u7528\u6cd5\u89c4\u5219\uff1a<\/p>\n<ul>\n<li>\n<p>D\u8868\u793a\u6d6e\u70b9\u578b\u6570\u636e\u5c0f\u6570\u70b9\u4e4b\u540e\u7684\u7cbe\u5ea6\uff0c\u5047\u5982\u8d85\u8fc7D\u4f4d\u5219\u56db\u820d\u4e94\u5165\uff0c\u53731.233\u56db\u820d\u4e94\u5165\u4e3a1.23\uff0c1.237\u56db\u820d\u4e94\u5165\u4e3a1.24<\/p>\n<\/li>\n<li>\n<p>M\u8868\u793a\u6d6e\u70b9\u578b\u6570\u636e\u603b\u5171\u7684\u4f4d\u6570\uff0cD=2\u5219\u8868\u793a\u603b\u5171\u652f\u6301\u4e94\u4f4d\uff0c\u5373\u5c0f\u6570\u70b9\u524d\u53ea\u652f\u6301\u4e09\u4f4d\u6570\uff0c\u6240\u4ee5\u6211\u4eec\u5e76\u6ca1\u6709\u770b\u52301000.23\u300110000.233\u3001100000.233\u8fd9\u4e09\u6761\u6570\u636e\u7684\u63d2\u5165\uff0c\u56e0\u4e3a\u63d2\u5165\u90fd\u62a5\u9519\u4e86<\/p>\n<\/li>\n<li>\n<p>\u5f53\u6211\u4eec\u4e0d\u6307\u5b9aM\u3001D\u7684\u65f6\u5019\uff0c\u4f1a\u6309\u7167\u5b9e\u9645\u7684\u7cbe\u5ea6\u6765\u5904\u7406<\/p>\n<\/li>\n<\/ul>\n<h5>\u65e5\u671f\u7c7b\u578b<\/h5>\n<p><img decoding=\"async\" src=\"http:\/\/img.danielw.top\/image-20220322133613787.png\" alt=\"image-20220322133613787\" \/><\/p>\n<pre><code class=\"language-mysql\">drop table if exists test_time;\ncreate table test_time (\n    date_value date,\n    time_value time,\n    year_value year,\n    datetime_value datetime,\n    timestamp_value timestamp\n) engine=innodb charset=utf8;\n\ninsert into test_time values(now(), now(), now(), now(), now());<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/img.danielw.top\/image-20220322140044184.png\" alt=\"image-20220322140044184\" \/><\/p>\n<p>MySQL\u7684\u65f6\u95f4\u7c7b\u578b\u7684\u77e5\u8bc6\u70b9\u6bd4\u8f83\u7b80\u5355\uff0c\u8fd9\u91cc\u91cd\u70b9\u5173\u6ce8\u4e00\u4e0bdatetime\u4e0etimestamp\u4e24\u79cd\u7c7b\u578b\u7684\u533a\u522b\uff1a<\/p>\n<ul>\n<li>\u4e0a\u9762\u5217\u4e86\uff0cdatetime\u53608\u4e2a\u5b57\u8282\uff0ctimestamp\u53604\u4e2a\u5b57\u8282<\/li>\n<li>\u7531\u4e8e\u5927\u5c0f\u7684\u533a\u522b\uff0cdatetime\u4e0etimestamp\u80fd\u5b58\u50a8\u7684\u65f6\u95f4\u8303\u56f4\u4e5f\u4e0d\u540c\uff0cdatetime\u7684\u5b58\u50a8\u8303\u56f4\u4e3a1000-01-01 00:00:00\u2014\u20149999-12-31  23:59:59\uff0ctimestamp\u5b58\u50a8\u7684\u65f6\u95f4\u8303\u56f4\u4e3a19700101080001\u2014\u201420380119111407<\/li>\n<li>datetime\u9ed8\u8ba4\u503c\u4e3a\u7a7a\uff0c\u5f53\u63d2\u5165\u7684\u503c\u4e3anull\u65f6\uff0c\u8be5\u5217\u7684\u503c\u5c31\u662fnull\uff1btimestamp\u9ed8\u8ba4\u503c\u4e0d\u4e3a\u7a7a\uff0c\u5f53\u63d2\u5165\u7684\u503c\u4e3anull\u7684\u65f6\u5019\uff0cmysql\u4f1a\u53d6\u5f53\u524d\u65f6\u95f4<\/li>\n<li>datetime\u5b58\u50a8\u7684\u65f6\u95f4\u4e0e\u65f6\u533a\u65e0\u5173\uff0ctimestamp\u5b58\u50a8\u7684\u65f6\u95f4\u53ca\u663e\u793a\u7684\u65f6\u95f4\u90fd\u4f9d\u8d56\u4e8e\u5f53\u524d\u65f6\u533a<\/li>\n<\/ul>\n<h5>char\u548cvarchar\u7c7b\u578b<\/h5>\n<pre><code class=\"language-mysql\">drop table if exists test_string;\ncreate table test_string (\n    char_value char(5),\n    varchar_value varchar(5)\n) engine=innodb charset=utf8;\n\ninsert into test_string values(&#039;a&#039;, &#039;a&#039;);\ninsert into test_string values(&#039; a&#039;, &#039; a&#039;);\ninsert into test_string values(&#039;a &#039;, &#039;a &#039;);\ninsert into test_string values(&#039; a &#039;, &#039; a &#039;);<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/img.danielw.top\/image-20220322140334481.png\" alt=\"image-20220322140334481\" \/><\/p>\n<ul>\n<li>char\u662f\u56fa\u5b9a\u957f\u5ea6\u5b57\u7b26\u4e32\uff0c\u5176\u957f\u5ea6\u8303\u56f4\u4e3a0~255\u4e14\u4e0e\u7f16\u7801\u65b9\u5f0f\u65e0\u5173\uff0c\u65e0\u8bba\u5b57\u7b26\u5b9e\u9645\u957f\u5ea6\u662f\u591a\u5c11\uff0c\u90fd\u4f1a\u6309\u7167\u6307\u5b9a\u957f\u5ea6\u5b58\u50a8\uff0c\u4e0d\u591f\u7684\u7528\u7a7a\u683c\u8865\u8db3\uff1bvarchar\u4e3a\u53ef\u53d8\u957f\u5ea6\u5b57\u7b26\u4e32\uff0c\u5728utf8\u7f16\u7801\u7684\u6570\u636e\u5e93\u4e2d\u5176\u957f\u5ea6\u8303\u56f4\u4e3a0~21844<\/li>\n<li>char\u5b9e\u9645\u5360\u7528\u7684\u5b57\u8282\u6570\u5373\u5b58\u50a8\u7684\u5b57\u7b26\u6240\u5360\u7528\u7684\u5b57\u8282\u6570\uff0cvarchar\u5b9e\u9645\u5360\u7528\u7684\u5b57\u8282\u6570\u4e3a\u5b58\u50a8\u7684\u5b57\u7b26+1\u6216+2\u6216+3<\/li>\n<li>MySQL\u5904\u7406char\u7c7b\u578b\u6570\u636e\u65f6\u4f1a\u5c06\u7ed3\u5c3e\u7684\u6240\u6709\u7a7a\u683c\u5904\u7406\u6389\u800cvarchar\u7c7b\u578b\u6570\u636e\u5219\u4e0d\u4f1a<\/li>\n<\/ul>\n<h4>MySQL\u57fa\u672c\u64cd\u4f5c<\/h4>\n<h5>\u521b\u5efa\u6570\u636e\u5e93<\/h5>\n<pre><code class=\"language-MySQL\">CREATE DATABASE \u6570\u636e\u5e93\u540d;<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/img.danielw.top\/image-20220322134604076.png\" alt=\"image-20220322134604076\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/img.danielw.top\/image-20220322134628727.png\" alt=\"image-20220322134628727\" \/><\/p>\n<h5>\u5220\u9664\u6570\u636e\u5e93<\/h5>\n<pre><code class=\"language-MySQL\">drop database &lt;\u6570\u636e\u5e93\u540d&gt;;<\/code><\/pre>\n<h5>\u9009\u62e9\u6570\u636e\u5e93<\/h5>\n<pre><code class=\"language-mysql\">use \u6570\u636e\u5e93\u540d;<\/code><\/pre>\n<h5>\u521b\u5efa\u6570\u636e\u8868<\/h5>\n<pre><code class=\"language-MySQL\">CREATE TABLE table_name (column_name column_type);\n\n\u4ee5\u4e0b\u4f8b\u5b50\u4e2d\u6211\u4eec\u5c06\u5728 RUNOOB \u6570\u636e\u5e93\u4e2d\u521b\u5efa\u6570\u636e\u8868runoob_tbl\uff1a\nCREATE TABLE IF NOT EXISTS `runoob_tbl`(\n   `runoob_id` INT UNSIGNED AUTO_INCREMENT,\n   `runoob_title` VARCHAR(100) NOT NULL,\n   `runoob_author` VARCHAR(40) NOT NULL,\n   `submission_date` DATE,\n   PRIMARY KEY ( `runoob_id` )\n)ENGINE=InnoDB DEFAULT CHARSET=utf8;<\/code><\/pre>\n<h5>\u5220\u9664\u6570\u636e\u8868<\/h5>\n<pre><code class=\"language-MySQL\">DROP TABLE table_name ;<\/code><\/pre>\n<h5>\u63d2\u5165\u6570\u636e<\/h5>\n<pre><code class=\"language-MySQL\">INSERT INTO table_name ( field1, field2,...fieldN )\n                       VALUES\n                       ( value1, value2,...valueN );<\/code><\/pre>\n<h5>\u67e5\u8be2\u6570\u636e<\/h5>\n<pre><code class=\"language-MySQL\">SELECT column_name,column_name\nFROM table_name\n[WHERE Clause]\n[LIMIT N][ OFFSET M]<\/code><\/pre>\n<ul>\n<li>\u67e5\u8be2\u8bed\u53e5\u4e2d\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u6216\u8005\u591a\u4e2a\u8868\uff0c\u8868\u4e4b\u95f4\u4f7f\u7528\u9017\u53f7(,)\u5206\u5272\uff0c\u5e76\u4f7f\u7528WHERE\u8bed\u53e5\u6765\u8bbe\u5b9a\u67e5\u8be2\u6761\u4ef6<\/li>\n<li>SELECT \u547d\u4ee4\u53ef\u4ee5\u8bfb\u53d6\u4e00\u6761\u6216\u8005\u591a\u6761\u8bb0\u5f55<\/li>\n<li>\u4f60\u53ef\u4ee5\u4f7f\u7528\u661f\u53f7\uff08*\uff09\u6765\u4ee3\u66ff\u5176\u4ed6\u5b57\u6bb5\uff0cSELECT\u8bed\u53e5\u4f1a\u8fd4\u56de\u8868\u7684\u6240\u6709\u5b57\u6bb5\u6570\u636e<\/li>\n<li>\u4f60\u53ef\u4ee5\u4f7f\u7528 WHERE \u8bed\u53e5\u6765\u5305\u542b\u4efb\u4f55\u6761\u4ef6<\/li>\n<li>\u4f60\u53ef\u4ee5\u4f7f\u7528 LIMIT \u5c5e\u6027\u6765\u8bbe\u5b9a\u8fd4\u56de\u7684\u8bb0\u5f55\u6570<\/li>\n<li>\u4f60\u53ef\u4ee5\u901a\u8fc7OFFSET\u6307\u5b9aSELECT\u8bed\u53e5\u5f00\u59cb\u67e5\u8be2\u7684\u6570\u636e\u504f\u79fb\u91cf\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u504f\u79fb\u91cf\u4e3a0<\/li>\n<\/ul>\n<h5>MySQL WHERE \u5b50\u53e5<\/h5>\n<pre><code class=\"language-mysql\">SELECT field1, field2,...fieldN FROM table_name1, table_name2...\n[WHERE condition1 [AND [OR]] condition2.....<\/code><\/pre>\n<ul>\n<li>\u67e5\u8be2\u8bed\u53e5\u4e2d\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u6216\u8005\u591a\u4e2a\u8868\uff0c\u8868\u4e4b\u95f4\u4f7f\u7528\u9017\u53f7, \u5206\u5272\uff0c\u5e76\u4f7f\u7528WHERE\u8bed\u53e5\u6765\u8bbe\u5b9a\u67e5\u8be2\u6761\u4ef6<\/li>\n<li>\u4f60\u53ef\u4ee5\u5728 WHERE \u5b50\u53e5\u4e2d\u6307\u5b9a\u4efb\u4f55\u6761\u4ef6<\/li>\n<li>\u4f60\u53ef\u4ee5\u4f7f\u7528 AND \u6216\u8005 OR \u6307\u5b9a\u4e00\u4e2a\u6216\u591a\u4e2a\u6761\u4ef6<\/li>\n<li>WHERE \u5b50\u53e5\u4e5f\u53ef\u4ee5\u8fd0\u7528\u4e8e SQL \u7684 DELETE \u6216\u8005 UPDATE \u547d\u4ee4<\/li>\n<li>WHERE \u5b50\u53e5\u7c7b\u4f3c\u4e8e\u7a0b\u5e8f\u8bed\u8a00\u4e2d\u7684 if \u6761\u4ef6\uff0c\u6839\u636e MySQL \u8868\u4e2d\u7684\u5b57\u6bb5\u503c\u6765\u8bfb\u53d6\u6307\u5b9a\u7684\u6570\u636e<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"http:\/\/img.danielw.top\/image-20220322135404769.png\" alt=\"image-20220322135404769\" \/><\/p>\n<h5>MySQL UPDATE \u66f4\u65b0<\/h5>\n<pre><code class=\"language-mysql\">UPDATE table_name SET field1=new-value1, field2=new-value2\n[WHERE Clause]<\/code><\/pre>\n<ul>\n<li>\u4f60\u53ef\u4ee5\u540c\u65f6\u66f4\u65b0\u4e00\u4e2a\u6216\u591a\u4e2a\u5b57\u6bb5<\/li>\n<li>\u4f60\u53ef\u4ee5\u5728 WHERE \u5b50\u53e5\u4e2d\u6307\u5b9a\u4efb\u4f55\u6761\u4ef6<\/li>\n<li>\u4f60\u53ef\u4ee5\u5728\u4e00\u4e2a\u5355\u72ec\u8868\u4e2d\u540c\u65f6\u66f4\u65b0\u6570\u636e<\/li>\n<\/ul>\n<h5>MySQL DELETE \u8bed\u53e5<\/h5>\n<pre><code class=\"language-MySQL\">DELETE FROM table_name [WHERE Clause]<\/code><\/pre>\n<ul>\n<li>\n<p>\u5982\u679c\u6ca1\u6709\u6307\u5b9a WHERE \u5b50\u53e5\uff0cMySQL \u8868\u4e2d\u7684\u6240\u6709\u8bb0\u5f55\u5c06\u88ab\u5220\u9664<\/p>\n<p>\u4f60\u53ef\u4ee5\u5728 WHERE \u5b50\u53e5\u4e2d\u6307\u5b9a\u4efb\u4f55\u6761\u4ef6<\/p>\n<\/li>\n<li>\n<p>\u60a8\u53ef\u4ee5\u5728\u5355\u4e2a\u8868\u4e2d\u4e00\u6b21\u6027\u5220\u9664\u8bb0\u5f55<\/p>\n<\/li>\n<\/ul>\n<h5>MySQL LIKE \u5b50\u53e5<\/h5>\n<pre><code class=\"language-mysql\">SELECT field1, field2,...fieldN \nFROM table_name\nWHERE field1 LIKE condition1 [AND [OR]] filed2 = &#039;somevalue&#039;<\/code><\/pre>\n<ul>\n<li>\u4f60\u53ef\u4ee5\u5728 WHERE \u5b50\u53e5\u4e2d\u6307\u5b9a\u4efb\u4f55\u6761\u4ef6<\/li>\n<li>\u4f60\u53ef\u4ee5\u5728 WHERE \u5b50\u53e5\u4e2d\u4f7f\u7528LIKE\u5b50\u53e5<\/li>\n<li>\u4f60\u53ef\u4ee5\u4f7f\u7528LIKE\u5b50\u53e5\u4ee3\u66ff\u7b49\u53f7 =<\/li>\n<li>LIKE \u901a\u5e38\u4e0e % \u4e00\u540c\u4f7f\u7528\uff0c\u7c7b\u4f3c\u4e8e\u4e00\u4e2a\u5143\u5b57\u7b26\u7684\u641c\u7d22<\/li>\n<li>\u4f60\u53ef\u4ee5\u4f7f\u7528 AND \u6216\u8005 OR \u6307\u5b9a\u4e00\u4e2a\u6216\u591a\u4e2a\u6761\u4ef6<\/li>\n<li>\u4f60\u53ef\u4ee5\u5728 DELETE \u6216 UPDATE \u547d\u4ee4\u4e2d\u4f7f\u7528  WHERE...LIKE \u5b50\u53e5\u6765\u6307\u5b9a\u6761\u4ef6<\/li>\n<\/ul>\n<h5>MySQL UNION \u64cd\u4f5c\u7b26<\/h5>\n<pre><code class=\"language-mysql\">SELECT expression1, expression2, ... expression_n\nFROM tables\n[WHERE conditions]\nUNION [ALL | DISTINCT]\nSELECT expression1, expression2, ... expression_n\nFROM tables\n[WHERE conditions];<\/code><\/pre>\n<ul>\n<li><strong>expression1, expression2, ... expression_n<\/strong>: \u8981\u68c0\u7d22\u7684\u5217<\/li>\n<li><strong>tables:<\/strong> \u8981\u68c0\u7d22\u7684\u6570\u636e\u8868<\/li>\n<li><strong>WHERE conditions:<\/strong> \u53ef\u9009\uff0c \u68c0\u7d22\u6761\u4ef6<\/li>\n<li><strong>DISTINCT:<\/strong> \u53ef\u9009\uff0c\u5220\u9664\u7ed3\u679c\u96c6\u4e2d\u91cd\u590d\u7684\u6570\u636e\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b UNION \u64cd\u4f5c\u7b26\u5df2\u7ecf\u5220\u9664\u4e86\u91cd\u590d\u6570\u636e\uff0c\u6240\u4ee5 DISTINCT \u4fee\u9970\u7b26\u5bf9\u7ed3\u679c\u6ca1\u5565\u5f71\u54cd<\/li>\n<li><strong>ALL:<\/strong> \u53ef\u9009\uff0c\u8fd4\u56de\u6240\u6709\u7ed3\u679c\u96c6\uff0c\u5305\u542b\u91cd\u590d\u6570\u636e<\/li>\n<\/ul>\n<h5>MySQL \u6392\u5e8f<\/h5>\n<pre><code class=\"language-mysql\">SELECT field1, field2,...fieldN FROM table_name1, table_name2...\nORDER BY field1 [ASC [DESC][\u9ed8\u8ba4 ASC]], [field2...] [ASC [DESC][\u9ed8\u8ba4 ASC]]<\/code><\/pre>\n<ul>\n<li>\u4f60\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u5b57\u6bb5\u6765\u4f5c\u4e3a\u6392\u5e8f\u7684\u6761\u4ef6\uff0c\u4ece\u800c\u8fd4\u56de\u6392\u5e8f\u540e\u7684\u67e5\u8be2\u7ed3\u679c\u3002<\/li>\n<li>\u4f60\u53ef\u4ee5\u8bbe\u5b9a\u591a\u4e2a\u5b57\u6bb5\u6765\u6392\u5e8f<\/li>\n<li>\u4f60\u53ef\u4ee5\u4f7f\u7528 ASC \u6216 DESC \u5173\u952e\u5b57\u6765\u8bbe\u7f6e\u67e5\u8be2\u7ed3\u679c\u662f\u6309\u5347\u5e8f\u6216\u964d\u5e8f\u6392\u5217\u3002 \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5b83\u662f\u6309\u5347\u5e8f\u6392\u5217<\/li>\n<li>\u4f60\u53ef\u4ee5\u6dfb\u52a0 WHERE...LIKE \u5b50\u53e5\u6765\u8bbe\u7f6e\u6761\u4ef6<\/li>\n<\/ul>\n<h5>MySQL GROUP BY \u8bed\u53e5<\/h5>\n<pre><code class=\"language-mysql\">SELECT column_name, function(column_name)\nFROM table_name\nWHERE column_name operator value\nGROUP BY column_name;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>MySQL\u6570\u636e\u7c7b\u578b \u6574\u578b drop table if exists test_tinyint; create table test &#8230;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"http:\/\/danielw.top\/index.php?rest_route=\/wp\/v2\/posts\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/danielw.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/danielw.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/danielw.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/danielw.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=33"}],"version-history":[{"count":2,"href":"http:\/\/danielw.top\/index.php?rest_route=\/wp\/v2\/posts\/33\/revisions"}],"predecessor-version":[{"id":141,"href":"http:\/\/danielw.top\/index.php?rest_route=\/wp\/v2\/posts\/33\/revisions\/141"}],"wp:attachment":[{"href":"http:\/\/danielw.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/danielw.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/danielw.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}