{"id":1794,"date":"2025-02-18T22:55:42","date_gmt":"2025-02-18T14:55:42","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=1794"},"modified":"2025-02-18T22:55:42","modified_gmt":"2025-02-18T14:55:42","slug":"mysql-%e4%b8%b4%e6%97%b6%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2025\/02\/18\/mysql-%e4%b8%b4%e6%97%b6%e8%a1%a8\/","title":{"rendered":"MySQL \u4e34\u65f6\u8868"},"content":{"rendered":"\n<p>MySQL \u4e34\u65f6\u8868\u662f\u6570\u636e\u5e93\u4e2d\u4e00\u4e2a\u4e34\u65f6\u5b58\u5728\u7684\u8868\uff0c\u901a\u5e38\u7528\u4e8e\u5b58\u50a8\u4e34\u65f6\u6570\u636e\u3002\u5b83\u4eec\u5728\u4f1a\u8bdd\u7ed3\u675f\u65f6\u81ea\u52a8\u9500\u6bc1\uff0c\u56e0\u6b64\u9002\u7528\u4e8e\u5b58\u50a8\u4ec5\u5728\u5f53\u524d\u4f1a\u8bdd\u4e2d\u9700\u8981\u7684\u6570\u636e\u3002\u4e34\u65f6\u8868\u5728\u5904\u7406\u590d\u6742\u67e5\u8be2\u6216\u9700\u8981\u4e34\u65f6\u5b58\u50a8\u4e2d\u95f4\u7ed3\u679c\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>\u4e34\u65f6\u8868\u7684\u57fa\u672c\u6982\u5ff5<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e34\u65f6\u8868\u662f\u6570\u636e\u5e93\u4e2d\u521b\u5efa\u7684\u4e00\u4e2a\u8868\uff0c\u751f\u547d\u5468\u671f\u4ec5\u9650\u4e8e\u4f1a\u8bdd\u3002\u4f1a\u8bdd\u7ed3\u675f\u540e\uff0c\u4e34\u65f6\u8868\u81ea\u52a8\u5220\u9664\u3002<\/li>\n\n\n\n<li>\u4e34\u65f6\u8868\u7684\u6570\u636e\u5bf9\u5176\u4ed6\u4f1a\u8bdd\u4e0d\u53ef\u89c1\uff0c\u6bcf\u4e2a\u4f1a\u8bdd\u521b\u5efa\u7684\u4e34\u65f6\u8868\u4e0e\u5176\u4ed6\u4f1a\u8bdd\u4e4b\u95f4\u4e92\u4e0d\u5e72\u6270\u3002<\/li>\n\n\n\n<li>\u4e34\u65f6\u8868\u4e0e\u666e\u901a\u8868\u7684\u533a\u522b\u5728\u4e8e\uff0c\u4e34\u65f6\u8868\u53ea\u5728\u521b\u5efa\u5b83\u7684\u4f1a\u8bdd\u4e2d\u6709\u6548\uff0c\u4e14\u81ea\u52a8\u5220\u9664\uff0c\u65e0\u9700\u663e\u5f0f\u5220\u9664\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>\u521b\u5efa\u4e34\u65f6\u8868<\/strong><\/h3>\n\n\n\n<p>\u4f7f\u7528 <code>CREATE TEMPORARY TABLE<\/code> \u8bed\u53e5\u521b\u5efa\u4e34\u65f6\u8868\uff0c\u8bed\u6cd5\u4e0e\u666e\u901a\u8868\u7684\u521b\u5efa\u7c7b\u4f3c\u3002\u4e34\u65f6\u8868\u7684\u7ed3\u6784\u53ef\u4ee5\u4e0e\u666e\u901a\u8868\u76f8\u540c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u793a\u4f8b\uff1a\u521b\u5efa\u4e00\u4e2a\u4e34\u65f6\u8868<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TEMPORARY TABLE temp_employees (\n    emp_id INT,\n    emp_name VARCHAR(100),\n    emp_salary DECIMAL(10, 2)\n);<\/code><\/pre>\n\n\n\n<p>\u8fd9\u91cc\u521b\u5efa\u4e86\u4e00\u4e2a\u540d\u4e3a <code>temp_employees<\/code> \u7684\u4e34\u65f6\u8868\uff0c\u5305\u542b\u4e09\u5217\uff1a<code>emp_id<\/code>\uff08\u5458\u5de5ID\uff09\u3001<code>emp_name<\/code>\uff08\u5458\u5de5\u59d3\u540d\uff09\u3001<code>emp_salary<\/code>\uff08\u5458\u5de5\u85aa\u6c34\uff09\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>\u64cd\u4f5c\u4e34\u65f6\u8868<\/strong><\/h3>\n\n\n\n<p>\u4e34\u65f6\u8868\u7684\u64cd\u4f5c\u4e0e\u666e\u901a\u8868\u7c7b\u4f3c\uff0c\u5305\u62ec <code>INSERT<\/code>\u3001<code>UPDATE<\/code>\u3001<code>SELECT<\/code>\u3001<code>DELETE<\/code> \u7b49\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u793a\u4f8b\uff1a\u5411\u4e34\u65f6\u8868\u4e2d\u63d2\u5165\u6570\u636e<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>INSERT INTO temp_employees (emp_id, emp_name, emp_salary)\nVALUES (1, 'John Doe', 50000.00),\n       (2, 'Jane Smith', 60000.00);<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u793a\u4f8b\uff1a\u4ece\u4e34\u65f6\u8868\u4e2d\u67e5\u8be2\u6570\u636e<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT * FROM temp_employees;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u793a\u4f8b\uff1a\u66f4\u65b0\u4e34\u65f6\u8868\u4e2d\u7684\u6570\u636e<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>UPDATE temp_employees SET emp_salary = emp_salary + 5000 WHERE emp_id = 1;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u793a\u4f8b\uff1a\u5220\u9664\u4e34\u65f6\u8868\u4e2d\u7684\u6570\u636e<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>DELETE FROM temp_employees WHERE emp_id = 2;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">4. <strong>\u4e34\u65f6\u8868\u7684\u751f\u547d\u5468\u671f<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e34\u65f6\u8868\u4ec5\u5728\u5f53\u524d\u4f1a\u8bdd\u6709\u6548\u3002\u4f1a\u8bdd\u7ed3\u675f\u65f6\uff0c\u4e34\u65f6\u8868\u4f1a\u81ea\u52a8\u88ab\u5220\u9664\u3002<\/li>\n\n\n\n<li>\u5982\u679c\u540c\u4e00\u4f1a\u8bdd\u4e2d\u521b\u5efa\u4e86\u591a\u4e2a\u4e34\u65f6\u8868\uff0c\u5b83\u4eec\u4e4b\u95f4\u4e0d\u4f1a\u4e92\u76f8\u5e72\u6270\u3002<\/li>\n\n\n\n<li>\u4e34\u65f6\u8868\u5728\u6574\u4e2a\u4f1a\u8bdd\u4e2d\u90fd\u53ef\u4ee5\u8bbf\u95ee\uff0c\u4f46\u4e00\u65e6\u4f1a\u8bdd\u7ed3\u675f\uff0c\u4e34\u65f6\u8868\u5c31\u4f1a\u88ab\u81ea\u52a8\u9500\u6bc1\u3002<\/li>\n\n\n\n<li>\u5982\u679c\u663e\u5f0f\u5220\u9664\u4e34\u65f6\u8868\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>DROP TEMPORARY TABLE<\/code>\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u793a\u4f8b\uff1a\u5220\u9664\u4e34\u65f6\u8868<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>DROP TEMPORARY TABLE temp_employees;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">5. <strong>\u4e34\u65f6\u8868\u7684\u7279\u70b9<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u4f1a\u8bdd\u8303\u56f4<\/strong>\uff1a\u4e34\u65f6\u8868\u662f\u4f1a\u8bdd\u7ea7\u7684\uff0c\u5176\u4ed6\u4f1a\u8bdd\u65e0\u6cd5\u8bbf\u95ee\u3002<\/li>\n\n\n\n<li><strong>\u81ea\u52a8\u9500\u6bc1<\/strong>\uff1a\u4f1a\u8bdd\u7ed3\u675f\u540e\uff0c\u4e34\u65f6\u8868\u4f1a\u81ea\u52a8\u5220\u9664\u3002<\/li>\n\n\n\n<li><strong>\u65e0\u6cd5\u7d22\u5f15<\/strong>\uff1a\u4e34\u65f6\u8868\u6ca1\u6709\u4e3b\u952e\u3001\u7d22\u5f15\u7b49\u7ea6\u675f\uff0c\u9664\u975e\u5728\u521b\u5efa\u65f6\u663e\u5f0f\u6307\u5b9a\u3002<\/li>\n\n\n\n<li><strong>\u4e0d\u5f71\u54cd\u5176\u4ed6\u4f1a\u8bdd<\/strong>\uff1a\u6bcf\u4e2a\u4f1a\u8bdd\u521b\u5efa\u7684\u4e34\u65f6\u8868\u76f8\u4e92\u72ec\u7acb\uff0c\u4e92\u4e0d\u5e72\u6270\u3002<\/li>\n\n\n\n<li><strong>\u4e0e\u666e\u901a\u8868\u7684\u76f8\u4f3c\u6027<\/strong>\uff1a\u5728\u4e34\u65f6\u8868\u4e2d\u53ef\u4ee5\u6267\u884c\u548c\u666e\u901a\u8868\u76f8\u540c\u7684 SQL \u64cd\u4f5c\uff0c\u5982\u67e5\u8be2\u3001\u63d2\u5165\u3001\u5220\u9664\u3001\u66f4\u65b0\u7b49\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">6. <strong>\u4e34\u65f6\u8868\u7684\u9ad8\u7ea7\u5e94\u7528<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">6.1 \u4e34\u65f6\u8868\u4e0e\u590d\u6742\u67e5\u8be2<\/h4>\n\n\n\n<p>\u4e34\u65f6\u8868\u5e38\u7528\u4e8e\u5b58\u50a8\u4e2d\u95f4\u7ed3\u679c\uff0c\u7279\u522b\u662f\u5728\u5904\u7406\u590d\u6742\u67e5\u8be2\u65f6\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u793a\u4f8b\uff1a\u4f7f\u7528\u4e34\u65f6\u8868\u4fdd\u5b58\u4e2d\u95f4\u67e5\u8be2\u7ed3\u679c<\/h5>\n\n\n\n<p>\u5047\u8bbe\u6211\u4eec\u6709\u4e24\u4e2a\u8868\uff1a<code>employees<\/code>\uff08\u5458\u5de5\u8868\uff09\u548c <code>departments<\/code>\uff08\u90e8\u95e8\u8868\uff09\uff0c\u5e76\u4e14\u6211\u4eec\u5e0c\u671b\u67e5\u8be2\u67d0\u90e8\u95e8\u7684\u5458\u5de5\u5217\u8868\uff0c\u5e76\u8ba1\u7b97\u4ed6\u4eec\u7684\u5e73\u5747\u85aa\u8d44\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4e34\u65f6\u8868\u6765\u5b58\u50a8\u8be5\u90e8\u95e8\u7684\u6240\u6709\u5458\u5de5\u6570\u636e\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TEMPORARY TABLE temp_dept_employees AS\nSELECT e.emp_id, e.emp_name, e.emp_salary\nFROM employees e\nJOIN departments d ON e.dept_id = d.dept_id\nWHERE d.dept_name = 'Sales';\n\nSELECT AVG(emp_salary) FROM temp_dept_employees;<\/code><\/pre>\n\n\n\n<p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5c06\u67e5\u8be2\u7ed3\u679c\u5b58\u50a8\u5230\u4e34\u65f6\u8868 <code>temp_dept_employees<\/code> \u4e2d\uff0c\u7136\u540e\u518d\u67e5\u8be2\u8be5\u4e34\u65f6\u8868\u7684\u5e73\u5747\u85aa\u8d44\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">6.2 \u4e34\u65f6\u8868\u4e0e\u4e8b\u52a1<\/h4>\n\n\n\n<p>\u4e34\u65f6\u8868\u7684\u751f\u547d\u5468\u671f\u4ec5\u9650\u4e8e\u4f1a\u8bdd\uff0c\u56e0\u6b64\u5b83\u4e0d\u4f1a\u53d7\u5230\u4e8b\u52a1\u7684\u5f71\u54cd\u3002\u4e34\u65f6\u8868\u53ef\u4ee5\u8de8\u4e8b\u52a1\u4f7f\u7528\uff0c\u4f46\u5728\u4f1a\u8bdd\u7ed3\u675f\u65f6\uff0c\u5b83\u4f1a\u81ea\u52a8\u88ab\u9500\u6bc1\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u793a\u4f8b\uff1a\u5728\u4e8b\u52a1\u4e2d\u4f7f\u7528\u4e34\u65f6\u8868<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>START TRANSACTION;\n\nCREATE TEMPORARY TABLE temp_sales AS\nSELECT * FROM sales WHERE sale_date = '2025-01-01';\n\nUPDATE temp_sales SET amount = amount * 1.1; -- \u8c03\u6574\u9500\u552e\u989d\n\nSELECT * FROM temp_sales;\n\nCOMMIT; -- \u63d0\u4ea4\u4e8b\u52a1\n\n-- \u4e34\u65f6\u8868\u81ea\u52a8\u5220\u9664<\/code><\/pre>\n\n\n\n<p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u5728\u4e8b\u52a1\u4e2d\u521b\u5efa\u4e86\u4e34\u65f6\u8868 <code>temp_sales<\/code>\uff0c\u5e76\u5bf9\u5176\u8fdb\u884c\u4e86\u66f4\u65b0\u64cd\u4f5c\u3002\u65e0\u8bba\u4e8b\u52a1\u662f\u5426\u63d0\u4ea4\uff0c\u4e34\u65f6\u8868\u4f1a\u5728\u4f1a\u8bdd\u7ed3\u675f\u65f6\u81ea\u52a8\u5220\u9664\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">6.3 \u4e34\u65f6\u8868\u4e0e\u6027\u80fd\u4f18\u5316<\/h4>\n\n\n\n<p>\u4f7f\u7528\u4e34\u65f6\u8868\u53ef\u4ee5\u6709\u6548\u5730\u4f18\u5316\u590d\u6742\u67e5\u8be2\u3002\u901a\u8fc7\u5c06\u4e2d\u95f4\u8ba1\u7b97\u7ed3\u679c\u5b58\u50a8\u5728\u4e34\u65f6\u8868\u4e2d\uff0c\u53ef\u4ee5\u51cf\u5c11\u591a\u6b21\u67e5\u8be2\u64cd\u4f5c\uff0c\u63d0\u9ad8\u6027\u80fd\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u793a\u4f8b\uff1a\u590d\u6742\u67e5\u8be2\u4f18\u5316<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TEMPORARY TABLE temp_avg_salary AS\nSELECT emp_dept_id, AVG(emp_salary) AS avg_salary\nFROM employees\nGROUP BY emp_dept_id;\n\nSELECT e.emp_id, e.emp_name, e.emp_salary, t.avg_salary\nFROM employees e\nJOIN temp_avg_salary t ON e.emp_dept_id = t.emp_dept_id;<\/code><\/pre>\n\n\n\n<p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e34\u65f6\u8868 <code>temp_avg_salary<\/code> \u6765\u5b58\u50a8\u6bcf\u4e2a\u90e8\u95e8\u7684\u5e73\u5747\u85aa\u8d44\uff0c\u7136\u540e\u5728\u540e\u7eed\u67e5\u8be2\u4e2d\u76f4\u63a5\u4f7f\u7528\u8be5\u4e34\u65f6\u8868\uff0c\u907f\u514d\u4e86\u91cd\u590d\u7684\u8ba1\u7b97\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">7. <strong>\u4e34\u65f6\u8868\u4e0e\u666e\u901a\u8868\u7684\u533a\u522b<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u7279\u6027<\/th><th>\u4e34\u65f6\u8868<\/th><th>\u666e\u901a\u8868<\/th><\/tr><\/thead><tbody><tr><td>\u751f\u547d\u5468\u671f<\/td><td>\u4f1a\u8bdd\u7ed3\u675f\u540e\u81ea\u52a8\u5220\u9664<\/td><td>\u9700\u8981\u624b\u52a8\u5220\u9664<\/td><\/tr><tr><td>\u8bbf\u95ee\u8303\u56f4<\/td><td>\u5f53\u524d\u4f1a\u8bdd<\/td><td>\u6240\u6709\u4f1a\u8bdd\u90fd\u53ef\u4ee5\u8bbf\u95ee<\/td><\/tr><tr><td>\u5b58\u50a8\u6570\u636e<\/td><td>\u4e34\u65f6\u5b58\u50a8<\/td><td>\u6301\u4e45\u5b58\u50a8<\/td><\/tr><tr><td>\u53ef\u89c1\u6027<\/td><td>\u4ec5\u5bf9\u521b\u5efa\u5b83\u7684\u4f1a\u8bdd\u53ef\u89c1<\/td><td>\u6240\u6709\u4f1a\u8bdd\u53ef\u89c1<\/td><\/tr><tr><td>\u7d22\u5f15\u4e0e\u7ea6\u675f<\/td><td>\u6ca1\u6709\u7d22\u5f15\u3001\u7ea6\u675f\uff08\u9664\u975e\u663e\u5f0f\u6307\u5b9a\uff09<\/td><td>\u53ef\u4ee5\u6709\u7d22\u5f15\u3001\u4e3b\u952e\u3001\u5916\u952e\u7b49<\/td><\/tr><tr><td>\u81ea\u52a8\u5220\u9664<\/td><td>\u4f1a\u8bdd\u7ed3\u675f\u65f6\u81ea\u52a8\u5220\u9664<\/td><td>\u9700\u8981\u663e\u5f0f\u5220\u9664<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">8. <strong>\u603b\u7ed3<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e34\u65f6\u8868\u7528\u4e8e\u5b58\u50a8\u4f1a\u8bdd\u7ea7\u7684\u4e34\u65f6\u6570\u636e\uff0c\u5b83\u5728\u4f1a\u8bdd\u7ed3\u675f\u65f6\u4f1a\u81ea\u52a8\u5220\u9664\u3002<\/li>\n\n\n\n<li>\u4e34\u65f6\u8868\u7684\u64cd\u4f5c\u4e0e\u666e\u901a\u8868\u76f8\u4f3c\uff0c\u4f46\u4ec5\u5728\u5f53\u524d\u4f1a\u8bdd\u4e2d\u6709\u6548\uff0c\u4e14\u65e0\u6cd5\u5f71\u54cd\u5176\u4ed6\u4f1a\u8bdd\u3002<\/li>\n\n\n\n<li>\u4e34\u65f6\u8868\u975e\u5e38\u9002\u5408\u7528\u4e8e\u5b58\u50a8\u4e2d\u95f4\u7ed3\u679c\uff0c\u5c24\u5176\u662f\u5728\u590d\u6742\u67e5\u8be2\u4e2d\u3002<\/li>\n\n\n\n<li>\u53ef\u4ee5\u5728\u4e8b\u52a1\u4e2d\u4f7f\u7528\u4e34\u65f6\u8868\uff0c\u4e34\u65f6\u8868\u7684\u6570\u636e\u4e0d\u4f1a\u968f\u4e8b\u52a1\u7684\u63d0\u4ea4\u6216\u56de\u6eda\u800c\u53d7\u5230\u5f71\u54cd\u3002<\/li>\n\n\n\n<li>\u4e34\u65f6\u8868\u53ef\u4ee5\u6709\u6548\u5730\u4f18\u5316\u590d\u6742\u67e5\u8be2\u548c\u6027\u80fd\uff0c\u4f46\u8fc7\u5ea6\u4f7f\u7528\u4e5f\u53ef\u80fd\u5f71\u54cd\u7cfb\u7edf\u8d44\u6e90\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u901a\u8fc7\u5408\u7406\u4f7f\u7528\u4e34\u65f6\u8868\uff0c\u53ef\u4ee5\u4f7f MySQL \u5728\u5904\u7406\u590d\u6742\u67e5\u8be2\u65f6\u66f4\u52a0\u9ad8\u6548\uff0c\u5c24\u5176\u662f\u5728\u9700\u8981\u5b58\u50a8\u4e2d\u95f4\u7ed3\u679c\u6216\u8005\u4e34\u65f6\u8ba1\u7b97\u65f6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL \u4e34\u65f6\u8868\u662f\u6570\u636e\u5e93\u4e2d\u4e00\u4e2a\u4e34\u65f6\u5b58\u5728\u7684\u8868\uff0c\u901a\u5e38\u7528\u4e8e\u5b58\u50a8\u4e34\u65f6\u6570\u636e\u3002\u5b83\u4eec\u5728\u4f1a\u8bdd\u7ed3\u675f\u65f6\u81ea\u52a8\u9500\u6bc1\uff0c\u56e0\u6b64\u9002\u7528\u4e8e\u5b58\u50a8\u4ec5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"class_list":["post-1794","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/1794","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/comments?post=1794"}],"version-history":[{"count":1,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/1794\/revisions"}],"predecessor-version":[{"id":1795,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/1794\/revisions\/1795"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=1794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=1794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=1794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}