{"id":55991,"date":"2025-08-14T11:04:43","date_gmt":"2025-08-14T03:04:43","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/55991.html"},"modified":"2025-08-14T11:04:43","modified_gmt":"2025-08-14T03:04:43","slug":"%e6%95%b0%e6%8d%ae%e5%ba%93%e8%ae%be%e8%ae%a1%e4%b8%89%e8%a6%81%e7%b4%a0%ef%bc%9a%e8%8c%83%e5%bc%8f%e3%80%81%e6%9d%83%e9%99%90%e4%b8%8e%e6%9f%a5%e8%af%a2","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/55991.html","title":{"rendered":"\u6570\u636e\u5e93\u8bbe\u8ba1\u4e09\u8981\u7d20\uff1a\u8303\u5f0f\u3001\u6743\u9650\u4e0e\u67e5\u8be2"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E4%B8%80%E3%80%81%E8%8C%83%E5%BC%8F%EF%BC%9A%E6%8A%8A%E2%80%9C%E5%A5%BD%E2%80%9D%E7%BB%93%E6%9E%84%E5%86%99%E8%BF%9B%E8%A1%A8%E5%AE%9A%E4%B9%89-toc\" style=\"margin-left:0px\">\u4e00\u3001\u8303\u5f0f&#xff1a;\u628a\u201c\u597d\u201d\u7ed3\u6784\u5199\u8fdb\u8868\u5b9a\u4e49<\/p>\n<p id=\"%E4%BA%8C%E3%80%81%E7%94%A8%E6%88%B7%E4%B8%8E%E6%9D%83%E9%99%90%EF%BC%9A%E6%8A%8A%E2%80%9C%E8%B0%81%E8%83%BD%E5%B9%B2%E4%BB%80%E4%B9%88%E2%80%9D%E5%86%99%E8%BF%9B%E7%B3%BB%E7%BB%9F%E8%A1%A8-toc\" style=\"margin-left:0px\">\u4e8c\u3001\u7528\u6237\u4e0e\u6743\u9650&#xff1a;\u628a\u201c\u8c01\u80fd\u5e72\u4ec0\u4e48\u201d\u5199\u8fdb\u7cfb\u7edf\u8868<\/p>\n<p id=\"%E4%B8%89%E3%80%81%E6%9D%A1%E4%BB%B6%E6%9F%A5%E8%AF%A2%EF%BC%9A%E6%8A%8A%E2%80%9C%E8%A6%81%E4%BB%80%E4%B9%88%E6%95%B0%E6%8D%AE%E2%80%9D%E5%86%99%E8%BF%9B%20WHERE-toc\" style=\"margin-left:0px\">\u4e09\u3001\u6761\u4ef6\u67e5\u8be2&#xff1a;\u628a\u201c\u8981\u4ec0\u4e48\u6570\u636e\u201d\u5199\u8fdb WHERE<\/p>\n<p id=\"%E5%9B%9B%E3%80%81%E7%BB%BC%E5%90%88%E6%A1%88%E4%BE%8B%EF%BC%9A%E6%8A%8A%E8%8C%83%E5%BC%8F%E3%80%81%E6%9D%83%E9%99%90%E3%80%81%E6%9F%A5%E8%AF%A2%E4%B8%B2%E6%88%90%E4%B8%80%E6%9D%A1%E7%BA%BF-toc\" style=\"margin-left:0px\">\u56db\u3001\u7efc\u5408\u6848\u4f8b&#xff1a;\u628a\u8303\u5f0f\u3001\u6743\u9650\u3001\u67e5\u8be2\u4e32\u6210\u4e00\u6761\u7ebf<\/p>\n<p id=\"%E4%BA%94%E3%80%81%E7%BB%93%E8%AF%AD%EF%BC%9A%E7%90%86%E8%AE%BA%E8%90%BD%E5%9C%B0%E4%B8%89%E6%9D%BF%E6%96%A7-toc\" style=\"margin-left:0px\">\u4e94\u3001\u7ed3\u8bed&#xff1a;\u7406\u8bba\u843d\u5730\u4e09\u677f\u65a7<\/p>\n<hr id=\"hr-toc\" \/>\n<h2 id=\"%E4%B8%80%E3%80%81%E8%8C%83%E5%BC%8F%EF%BC%9A%E6%8A%8A%E2%80%9C%E5%A5%BD%E2%80%9D%E7%BB%93%E6%9E%84%E5%86%99%E8%BF%9B%E8%A1%A8%E5%AE%9A%E4%B9%89\">\u4e00\u3001\u8303\u5f0f&#xff1a;\u628a\u201c\u597d\u201d\u7ed3\u6784\u5199\u8fdb\u8868\u5b9a\u4e49<\/h2>\n<p>1.1 \u4e3a\u4ec0\u4e48\u8981\u8c08\u8303\u5f0f \u628a\u6570\u636e\u62c6\u5f97\u5408\u7406&#xff0c;\u53ef\u4ee5\u8ba9\u66f4\u65b0\u66f4\u5feb\u3001\u5197\u4f59\u66f4\u5c11\u3001\u9501\u51b2\u7a81\u66f4\u4f4e&#xff1b;\u62c6\u5f97\u8fc7\u5934&#xff0c;\u53c8\u4f1a\u8ba9\u67e5\u8be2\u53d8\u6162\u3001Join \u53d8\u591a\u3002\u56e0\u6b64&#xff0c;\u7406\u89e3\u8303\u5f0f\u4e0d\u662f\u80cc\u5b9a\u4e49&#xff0c;\u800c\u662f\u5b66\u4f1a\u5728\u201c\u8282\u7701\u7a7a\u95f4\u201d\u4e0e\u201c\u67e5\u8be2\u6027\u80fd\u201d\u4e4b\u95f4\u505a\u6743\u8861\u3002<\/p>\n<p>1.2 \u7b2c\u4e00\u8303\u5f0f&#xff08;1NF&#xff09;&#xff1a;\u5217\u4e0d\u53ef\u518d\u5206 \u5b9a\u4e49&#xff1a;\u5173\u7cfb\u4e2d\u7684\u6240\u6709\u5b57\u6bb5\u503c\u90fd\u662f\u539f\u5b50\u7684&#xff0c;\u4e0d\u53ef\u518d\u62c6\u3002 \u793a\u4f8b&#xff1a; \u9519\u8bef\u8bbe\u8ba1&#xff1a;<\/p>\n<p>CREATE TABLE t_order(<br \/>\n  order_id INT PRIMARY KEY,<br \/>\n  product_list VARCHAR(500)  &#8212; &#034;\u82f9\u679c,3;\u9999\u8549,2&#034;<br \/>\n); <\/p>\n<p>\u6b63\u786e\u505a\u6cd5&#xff1a;<\/p>\n<p>CREATE TABLE t_order_item(<br \/>\n  order_id INT,<br \/>\n  product_name VARCHAR(50),<br \/>\n  qty INT,<br \/>\n  PRIMARY KEY(order_id, product_name)<br \/>\n); <\/p>\n<p>\u5e38\u89c1\u8bef\u533a&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u628a JSON\u3001CSV \u76f4\u63a5\u585e\u8fdb\u4e00\u4e2a\u5b57\u6bb5&#xff0c;\u867d\u7136\u6ee1\u8db3\u4e86\u201c\u7269\u7406\u4e0a\u53ea\u6709\u4e00\u4e2a\u503c\u201d&#xff0c;\u4f46\u903b\u8f91\u4e0a\u4ecd\u8fdd\u53cd 1NF&#xff0c;\u5bfc\u81f4\u540e\u7eed WHERE\u3001GROUP BY \u65e0\u6cd5\u8d70\u7d22\u5f15\u3002<\/p>\n<\/li>\n<li>\n<p>\u7528 ENUM \u5b58\u591a\u9009\u503c&#xff08;\u5982 ENUM(&#039;A,B&#039;,&#039;B,C&#039;)&#xff09;&#xff0c;\u540c\u6837\u8fdd\u53cd 1NF\u3002<\/p>\n<\/li>\n<\/ul>\n<p>1.3 \u7b2c\u4e8c\u8303\u5f0f&#xff08;2NF&#xff09;&#xff1a;\u6d88\u9664\u90e8\u5206\u4f9d\u8d56 \u524d\u63d0&#xff1a;\u5fc5\u987b\u5148\u6ee1\u8db3 1NF\u3002 \u5b9a\u4e49&#xff1a;\u975e\u4e3b\u952e\u5217\u5fc5\u987b\u5b8c\u5168\u4f9d\u8d56\u4e8e\u201c\u6574\u4e2a\u201d\u4e3b\u952e&#xff0c;\u800c\u4e0d\u80fd\u53ea\u4f9d\u8d56\u4e3b\u952e\u7684\u4e00\u90e8\u5206\u3002 \u793a\u4f8b&#xff1a;<\/p>\n<p>CREATE TABLE t_score(<br \/>\n  stu_id INT,<br \/>\n  course_id INT,<br \/>\n  stu_name VARCHAR(20),        &#8212; \u53ea\u4f9d\u8d56 stu_id<br \/>\n  course_name VARCHAR(50),     &#8212; \u53ea\u4f9d\u8d56 course_id<br \/>\n  score TINYINT,<br \/>\n  PRIMARY KEY(stu_id, course_id)<br \/>\n); <\/p>\n<p>stu_name \u53ea\u8ddf stu_id \u6709\u5173&#xff0c;course_name \u53ea\u8ddf course_id \u6709\u5173\u2014\u2014\u5b58\u5728\u90e8\u5206\u4f9d\u8d56\u3002\u62c6\u8868&#xff1a;<\/p>\n<p>CREATE TABLE t_student(stu_id PK, stu_name);<br \/>\nCREATE TABLE t_course(course_id PK, course_name);<br \/>\nCREATE TABLE t_score(stu_id, course_id, score,<br \/>\n                     PRIMARY KEY(stu_id, course_id)); <\/p>\n<p>\u5e38\u89c1\u8bef\u533a&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u4ee5\u4e3a\u201c\u53ea\u8981\u6709\u4e86\u81ea\u589e\u4e3b\u952e\u5c31\u5929\u7136 2NF\u201d\u3002\u5b9e\u9645\u4e0a&#xff0c;\u5982\u679c\u8fd8\u6709 (stu_id, course_id) \u8fd9\u6837\u7684\u8054\u5408\u4e1a\u52a1\u4e3b\u952e&#xff0c;\u4ecd\u9700\u8981\u68c0\u67e5\u90e8\u5206\u4f9d\u8d56\u3002<\/p>\n<\/li>\n<\/ul>\n<p>1.4 \u7b2c\u4e09\u8303\u5f0f&#xff08;3NF&#xff09;&#xff1a;\u6d88\u9664\u4f20\u9012\u4f9d\u8d56 \u524d\u63d0&#xff1a;\u5fc5\u987b\u5148\u6ee1\u8db3 2NF\u3002 \u5b9a\u4e49&#xff1a;\u975e\u4e3b\u952e\u5217\u4e0d\u80fd\u4f9d\u8d56\u4e8e\u5176\u4ed6\u975e\u4e3b\u952e\u5217\u3002 \u793a\u4f8b&#xff1a;<\/p>\n<p>CREATE TABLE t_employee(<br \/>\n  emp_id INT PRIMARY KEY,<br \/>\n  dept_name VARCHAR(30),<br \/>\n  dept_addr VARCHAR(100)  &#8212; \u4f9d\u8d56\u4e8e dept_name<br \/>\n); <\/p>\n<p>dept_addr \u901a\u8fc7 dept_name \u4f20\u9012\u4f9d\u8d56\u4e8e emp_id&#xff0c;\u8fdd\u53cd 3NF\u3002\u62c6\u8868&#xff1a;<\/p>\n<p>CREATE TABLE t_dept(dept_name PK, dept_addr);<br \/>\nCREATE TABLE t_employee(emp_id PK, dept_name,<br \/>\n                        FOREIGN KEY(dept_name) REFERENCES t_dept); <\/p>\n<p>\u5e38\u89c1\u8bef\u533a&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u8fc7\u5ea6\u8ffd\u6c42 3NF \u5bfc\u81f4\u201c\u4e00\u5f20\u4e1a\u52a1\u8868\u62c6\u6210\u5341\u5f20\u201d&#xff0c;\u67e5\u8be2\u65f6\u8981 N \u8def Join&#xff0c;\u6027\u80fd\u96ea\u5d29\u3002<\/p>\n<\/li>\n<li>\n<p>\u6570\u636e\u4ed3\u5e93\u573a\u666f\u901a\u5e38\u53cd\u8303\u5f0f\u5316&#xff0c;\u6545\u610f\u5197\u4f59\u4ee5\u6362\u53d6\u5206\u6790\u901f\u5ea6\u3002<\/p>\n<\/li>\n<\/ul>\n<p>1.5 \u5c0f\u7ed3&#xff1a;\u8303\u5f0f\u4e0e\u53cd\u8303\u5f0f\u7684\u5e73\u8861<\/p>\n<ul>\n<li>\n<p>OLTP&#xff08;\u4ea4\u6613\u578b&#xff09;\u7cfb\u7edf&#xff1a;\u4f18\u5148 3NF&#xff0c;\u964d\u4f4e\u66f4\u65b0\u5f02\u5e38\u3002<\/p>\n<\/li>\n<li>\n<p>OLAP&#xff08;\u5206\u6790\u578b&#xff09;\u7cfb\u7edf&#xff1a;\u5141\u8bb8\u5197\u4f59\u3001\u9884\u805a\u5408&#xff0c;\u8303\u5f0f\u53ef\u653e\u5bbd\u5230 2NF \u751a\u81f3 1NF\u3002<\/p>\n<\/li>\n<\/ul>\n<h2 id=\"%E4%BA%8C%E3%80%81%E7%94%A8%E6%88%B7%E4%B8%8E%E6%9D%83%E9%99%90%EF%BC%9A%E6%8A%8A%E2%80%9C%E8%B0%81%E8%83%BD%E5%B9%B2%E4%BB%80%E4%B9%88%E2%80%9D%E5%86%99%E8%BF%9B%E7%B3%BB%E7%BB%9F%E8%A1%A8\">\u4e8c\u3001\u7528\u6237\u4e0e\u6743\u9650&#xff1a;\u628a\u201c\u8c01\u80fd\u5e72\u4ec0\u4e48\u201d\u5199\u8fdb\u7cfb\u7edf\u8868<\/h2>\n<p>2.1 MySQL \u6743\u9650\u4f53\u7cfb\u9e1f\u77b0 MySQL \u628a\u201c\u8d26\u53f7\u201d\u4e0e\u201c\u6743\u9650\u201d\u5206\u5f00\u5b58\u50a8&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u8d26\u53f7&#xff1a;user \u8868&#xff08;user &#043; host \u7ec4\u5408\u4e3a PK&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u6743\u9650&#xff1a;\u5206 global\u3001db\u3001table\u3001column\u3001routine\u3001proxy \u516d\u4e2a\u7c92\u5ea6&#xff0c;\u5c42\u5c42\u7ec6\u5316\u3002<\/p>\n<\/li>\n<\/ul>\n<p>2.2 \u8d26\u53f7\u7ba1\u7406\u5b9e\u6218 &#xff08;1&#xff09;\u521b\u5efa\u53ea\u8bfb\u8d26\u53f7<\/p>\n<p>CREATE USER &#039;report&#039;&#064;&#039;10.%&#039; IDENTIFIED BY &#039;Rpt#2025&#039;;<br \/>\nGRANT SELECT ON sales.* TO &#039;report&#039;&#064;&#039;10.%&#039;; <\/p>\n<p>&#xff08;2&#xff09;\u521b\u5efa\u4e1a\u52a1\u8d26\u53f7\u5e76\u9650\u5236\u8fde\u63a5\u6570<\/p>\n<p>CREATE USER &#039;app&#039;&#064;&#039;192.168.%&#039; IDENTIFIED BY &#039;App$2025&#039;<br \/>\n       WITH MAX_USER_CONNECTIONS 100;<br \/>\nGRANT SELECT, INSERT, UPDATE, DELETE ON appdb.* TO &#039;app&#039;&#064;&#039;192.168.%&#039;; <\/p>\n<p>&#xff08;3&#xff09;\u56de\u6536\u6743\u9650\u3001\u5220\u9664\u8d26\u53f7<\/p>\n<p>REVOKE DELETE ON appdb.* FROM &#039;app&#039;&#064;&#039;192.168.%&#039;;<br \/>\nDROP USER &#039;old_app&#039;&#064;&#039;%&#039;; <\/p>\n<p>2.3 \u6743\u9650\u7c92\u5ea6\u6df1\u5165<\/p>\n<ul>\n<li>\n<p>\u5168\u5c40&#xff1a;.<\/p>\n<\/li>\n<li>\n<p>\u6570\u636e\u5e93&#xff1a;db_name.*<\/p>\n<\/li>\n<li>\n<p>\u8868&#xff1a;db_name.tbl_name<\/p>\n<\/li>\n<li>\n<p>\u5217&#xff1a;SELECT(col1,col2)<\/p>\n<\/li>\n<li>\n<p>\u5b58\u50a8\u8fc7\u7a0b&#xff1a;EXECUTE ON PROCEDURE db_name.proc_name<\/p>\n<\/li>\n<li>\n<p>\u4ee3\u7406&#xff1a;PROXY &#039;root&#039;&#064;&#039;%&#039;<\/p>\n<\/li>\n<\/ul>\n<p>2.4 \u5bc6\u7801\u7b56\u7565\u4e0e SSL<\/p>\n<p>SET GLOBAL validate_password.policy &#061; STRONG;<br \/>\nCREATE USER &#039;secure_user&#039;&#064;&#039;%&#039;<br \/>\n  IDENTIFIED BY &#039;Str0ng!&#064;#&#039;<br \/>\n  REQUIRE SSL; <\/p>\n<p>2.5 \u5e38\u89c1\u5b89\u5168\u8bef\u533a<\/p>\n<ul>\n<li>\n<p>\u628a\u4e1a\u52a1\u8d26\u53f7 host \u8bbe\u4e3a &#039;%&#039;&#xff0c;\u5bfc\u81f4\u5916\u7f51\u53ef\u8fde\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f7f\u7528 GRANT ALL PRIVILEGES ON .&#xff0c;\u7ed9\u5e94\u7528\u8d26\u53f7\u6700\u9ad8\u6743\u9650\u3002<\/p>\n<\/li>\n<li>\n<p>\u5fd8\u8bb0\u5b9a\u671f\u8dd1 FLUSH PRIVILEGES&#xff0c;\u5bfc\u81f4\u6539\u8868\u540e\u6743\u9650\u672a\u751f\u6548&#xff08;MySQL 8.0 \u4e4b\u540e\u5df2\u81ea\u52a8 flush&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<h2 id=\"%E4%B8%89%E3%80%81%E6%9D%A1%E4%BB%B6%E6%9F%A5%E8%AF%A2%EF%BC%9A%E6%8A%8A%E2%80%9C%E8%A6%81%E4%BB%80%E4%B9%88%E6%95%B0%E6%8D%AE%E2%80%9D%E5%86%99%E8%BF%9B%20WHERE\">\u4e09\u3001\u6761\u4ef6\u67e5\u8be2&#xff1a;\u628a\u201c\u8981\u4ec0\u4e48\u6570\u636e\u201d\u5199\u8fdb WHERE<\/h2>\n<p>3.1 \u67e5\u8be2\u6267\u884c\u94fe\u8def\u56de\u987e SQL \u2192 \u89e3\u6790\u5668 \u2192 \u4f18\u5316\u5668 \u2192 \u6267\u884c\u5668 \u2192 \u5b58\u50a8\u5f15\u64ce\u3002\u6761\u4ef6\u67e5\u8be2\u7684\u4f18\u52a3\u76f4\u63a5\u5f71\u54cd\u4f18\u5316\u5668\u80fd\u5426\u4f7f\u7528\u7d22\u5f15\u3001\u80fd\u5426\u505a ICP&#xff08;Index Condition Pushdown&#xff09;\u3002<\/p>\n<p>3.2 \u5355\u8868\u6761\u4ef6 &#xff08;1&#xff09;\u8303\u56f4\u4e0e\u7b49\u503c<\/p>\n<p>SELECT * FROM orders<br \/>\nWHERE order_date BETWEEN &#039;2025-07-01&#039; AND &#039;2025-07-31&#039;<br \/>\n  AND status &#061; &#039;PAID&#039;; <\/p>\n<p>\u7d22\u5f15\u5efa\u8bae&#xff1a;\u8054\u5408\u7d22\u5f15 (status, order_date)\u3002<\/p>\n<p>&#xff08;2&#xff09;\u6a21\u7cca\u5339\u914d<\/p>\n<p>SELECT * FROM products WHERE name LIKE &#039;\u82f9\u679c%&#039;;<\/p>\n<ul>\n<li>\n<p>% \u5728\u524d\u4f1a\u5bfc\u81f4\u7d22\u5f15\u5931\u6548&#xff0c;\u9664\u975e\u4f7f\u7528\u5168\u6587\u7d22\u5f15\u3002<\/p>\n<\/li>\n<\/ul>\n<p>&#xff08;3&#xff09;NULL \u5224\u65ad<\/p>\n<p>SELECT * FROM users WHERE deleted_at IS NULL;<\/p>\n<p>MySQL \u91cc NULL \u4e0d\u7b49\u4e8e\u4efb\u4f55\u503c&#xff0c;\u5305\u62ec NULL \u672c\u8eab\u3002<\/p>\n<p>3.3 \u591a\u8868\u6761\u4ef6 &#xff08;1&#xff09;INNER JOIN &#043; WHERE<\/p>\n<p>SELECT o.order_id, u.user_name<br \/>\nFROM orders o<br \/>\nJOIN users u ON o.user_id &#061; u.id<br \/>\nWHERE o.amount &gt; 1000; <\/p>\n<p>&#xff08;2&#xff09;LEFT JOIN \u7684 WHERE \u9677\u9631<\/p>\n<p>SELECT u.user_name, o.order_id<br \/>\nFROM users u<br \/>\nLEFT JOIN orders o ON u.id &#061; o.user_id<br \/>\nWHERE o.amount &gt; 1000;   &#8212; \u628a LEFT JOIN \u53d8\u6210 INNER JOIN <\/p>\n<p>\u6b63\u786e\u5199\u6cd5&#xff1a;\u628a\u6761\u4ef6\u653e\u8fdb JOIN \u5b50\u53e5\u6216\u7528 WHERE o.id IS NULL\u3002<\/p>\n<p>3.4 \u5b50\u67e5\u8be2\u4e0e\u6d3e\u751f\u8868<\/p>\n<p>SELECT * FROM products<br \/>\nWHERE category_id IN (<br \/>\n  SELECT id FROM categories WHERE name &#061; &#039;\u624b\u673a&#039;<br \/>\n); <\/p>\n<p>MySQL 5.7 \u4e4b\u524d IN \u5b50\u67e5\u8be2\u53ef\u80fd\u7269\u5316&#xff0c;8.0 \u652f\u6301 semi-join \u4f18\u5316\u3002<\/p>\n<p>3.5 HAVING \u4e0e\u805a\u5408<\/p>\n<p>SELECT user_id, COUNT(*) AS cnt<br \/>\nFROM orders<br \/>\nGROUP BY user_id<br \/>\nHAVING cnt &gt;&#061; 5; <\/p>\n<p>HAVING \u5728 GROUP BY \u4e4b\u540e\u8fc7\u6ee4&#xff0c;\u4e0e WHERE \u7684\u8bed\u4e49\u4e0d\u540c\u3002<\/p>\n<p>3.6 \u8054\u5408\u7d22\u5f15\u4e0e\u6700\u5de6\u524d\u7f00<\/p>\n<p>ALTER TABLE orders ADD INDEX idx_status_amount(status, amount);<br \/>\nSELECT * FROM orders WHERE amount &#061; 100;  &#8212; \u65e0\u6cd5\u7528\u5230\u7d22\u5f15 <\/p>\n<p>\u5fc5\u987b\u5305\u542b\u6700\u5de6\u5217 status&#xff0c;\u624d\u80fd\u547d\u4e2d\u8054\u5408\u7d22\u5f15\u3002<\/p>\n<p>3.7 \u51fd\u6570\u4e0e\u9690\u5f0f\u8f6c\u6362<\/p>\n<p>SELECT * FROM orders WHERE DATE(create_time) &#061; &#039;2025-08-14&#039;;<\/p>\n<p>\u5bf9\u5217\u505a\u51fd\u6570\u4f1a\u5bfc\u81f4\u7d22\u5f15\u5931\u6548\u3002\u6539\u5199&#xff1a;<\/p>\n<p>SELECT * FROM orders<br \/>\nWHERE create_time &gt;&#061; &#039;2025-08-14 00:00:00&#039;<br \/>\n  AND create_time &lt;  &#039;2025-08-15 00:00:00&#039;; <\/p>\n<p>3.8 \u5206\u9875\u4e0e\u6df1\u7ffb\u9875<\/p>\n<p>SELECT * FROM orders ORDER BY id DESC LIMIT 100000, 20;<\/p>\n<p>\u6df1\u7ffb\u9875\u6027\u80fd\u5dee&#xff0c;\u53ef\u6539\u4e3a\u201c\u8bb0\u4f4f\u4e0a\u4e00\u9875\u6700\u5927 id\u201d\u7684\u6e38\u6807\u5206\u9875&#xff1a;<\/p>\n<p>SELECT * FROM orders WHERE id &lt; ? ORDER BY id DESC LIMIT 20;<\/p>\n<h2 id=\"%E5%9B%9B%E3%80%81%E7%BB%BC%E5%90%88%E6%A1%88%E4%BE%8B%EF%BC%9A%E6%8A%8A%E8%8C%83%E5%BC%8F%E3%80%81%E6%9D%83%E9%99%90%E3%80%81%E6%9F%A5%E8%AF%A2%E4%B8%B2%E6%88%90%E4%B8%80%E6%9D%A1%E7%BA%BF\">\u56db\u3001\u7efc\u5408\u6848\u4f8b&#xff1a;\u628a\u8303\u5f0f\u3001\u6743\u9650\u3001\u67e5\u8be2\u4e32\u6210\u4e00\u6761\u7ebf<\/h2>\n<p>\u573a\u666f&#xff1a;\u505a\u4e00\u4e2a\u7535\u5546\u8ba2\u5355\u62a5\u8868\u7cfb\u7edf&#xff0c;\u8981\u6c42<\/p>\n<ul>\n<li>\n<p>\u6570\u636e\u4e0d\u5197\u4f59&#xff08;\u8303\u5f0f&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u62a5\u8868\u8d26\u53f7\u53ea\u80fd\u8bfb&#xff08;\u6743\u9650&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u652f\u6301\u6309\u65e5\u671f\u3001\u72b6\u6001\u3001\u91d1\u989d\u591a\u6761\u4ef6\u67e5\u8be2&#xff08;\u67e5\u8be2&#xff09;<\/p>\n<\/li>\n<\/ul>\n<p>4.1 \u8868\u8bbe\u8ba1&#xff08;\u6ee1\u8db3 3NF&#xff09;<\/p>\n<p>CREATE TABLE t_user(<br \/>\n  id BIGINT PRIMARY KEY,<br \/>\n  name VARCHAR(50) NOT NULL,<br \/>\n  email VARCHAR(100) UNIQUE<br \/>\n);<\/p>\n<p>CREATE TABLE t_product(<br \/>\n  id BIGINT PRIMARY KEY,<br \/>\n  name VARCHAR(100),<br \/>\n  price DECIMAL(10,2)<br \/>\n);<\/p>\n<p>CREATE TABLE t_order(<br \/>\n  id BIGINT PRIMARY KEY,<br \/>\n  user_id BIGINT,<br \/>\n  order_time DATETIME,<br \/>\n  status ENUM(&#039;UNPAID&#039;,&#039;PAID&#039;,&#039;CLOSED&#039;),<br \/>\n  amount DECIMAL(10,2),<br \/>\n  INDEX idx_user_time(user_id, order_time),<br \/>\n  INDEX idx_status_amount(status, amount)<br \/>\n);<\/p>\n<p>CREATE TABLE t_order_item(<br \/>\n  order_id BIGINT,<br \/>\n  product_id BIGINT,<br \/>\n  qty INT,<br \/>\n  PRIMARY KEY(order_id, product_id),<br \/>\n  FOREIGN KEY(order_id) REFERENCES t_order(id)<br \/>\n); <\/p>\n<p>4.2 \u6743\u9650\u914d\u7f6e<\/p>\n<p>&#8212; \u53ea\u8bfb\u8d26\u53f7<br \/>\nCREATE USER &#039;bi_ro&#039;&#064;&#039;10.10.%&#039; IDENTIFIED BY &#039;BI#2025&#039;;<br \/>\nGRANT SELECT ON report.* TO &#039;bi_ro&#039;&#064;&#039;10.10.%&#039;;<br \/>\n&#8212; \u521b\u5efa\u89c6\u56fe\u5c4f\u853d\u654f\u611f\u5217<br \/>\nCREATE VIEW report.v_order AS<br \/>\nSELECT o.id, o.order_time, o.status, o.amount, u.name AS user_name<br \/>\nFROM t_order o<br \/>\nJOIN t_user u ON o.user_id &#061; u.id;<br \/>\nGRANT SELECT ON report.v_order TO &#039;bi_ro&#039;&#064;&#039;10.10.%&#039;; <\/p>\n<p>4.3 \u67e5\u8be2\u793a\u4f8b \u9700\u6c42&#xff1a;2025 \u5e74 8 \u6708\u5df2\u4ed8\u6b3e\u8ba2\u5355&#xff0c;\u91d1\u989d &gt; 1000&#xff0c;\u6309\u91d1\u989d\u964d\u5e8f\u53d6\u524d 20\u3002<\/p>\n<p>SELECT id, order_time, amount, user_name<br \/>\nFROM report.v_order<br \/>\nWHERE status &#061; &#039;PAID&#039;<br \/>\n  AND order_time BETWEEN &#039;2025-08-01&#039; AND &#039;2025-08-31&#039;<br \/>\n  AND amount &gt; 1000<br \/>\nORDER BY amount DESC<br \/>\nLIMIT 20; <\/p>\n<p>\u6267\u884c\u8ba1\u5212&#xff08;EXPLAIN&#xff09;\u663e\u793a&#xff1a;<\/p>\n<ul>\n<li>\n<p>type &#061; range&#xff0c;key &#061; idx_status_amount<\/p>\n<\/li>\n<li>\n<p>Extra &#061; Using where; Using filesort&#xff08;\u91d1\u989d\u6392\u5e8f\u65e0\u6cd5\u5229\u7528\u7d22\u5f15&#xff0c;\u9700\u56de\u8868&#xff09; \u82e5\u6392\u5e8f\u6027\u80fd\u74f6\u9888\u660e\u663e&#xff0c;\u53ef\u5728 (status, amount DESC) \u5efa\u8054\u5408\u7d22\u5f15\u3002<\/p>\n<\/li>\n<\/ul>\n<h2 id=\"%E4%BA%94%E3%80%81%E7%BB%93%E8%AF%AD%EF%BC%9A%E7%90%86%E8%AE%BA%E8%90%BD%E5%9C%B0%E4%B8%89%E6%9D%BF%E6%96%A7\">\u4e94\u3001\u7ed3\u8bed&#xff1a;\u7406\u8bba\u843d\u5730\u4e09\u677f\u65a7<\/h2>\n<li>\n<p>\u5148\u753b ER \u56fe&#xff0c;\u518d\u5957\u8303\u5f0f&#xff1a;\u628a\u201c\u5b9e\u4f53-\u5173\u7cfb\u201d\u753b\u6e05\u695a&#xff0c;\u81ea\u7136\u77e5\u9053\u54ea\u91cc\u8be5\u62c6\u8868\u3002<\/p>\n<\/li>\n<li>\n<p>\u5148\u6700\u5c0f\u6743\u9650&#xff0c;\u518d\u9010\u6b65\u653e\u5f00&#xff1a;\u8d26\u53f7\u521b\u5efa\u65f6\u53ea\u7ed9 SELECT&#xff0c;\u8fd0\u884c\u4e00\u6bb5\u65f6\u95f4\u65e0\u62a5\u9519\u518d\u89c6\u9700\u6c42\u52a0 INSERT\/UPDATE\u3002<\/p>\n<\/li>\n<li>\n<p>\u5148\u5199\u6162 SQL&#xff0c;\u518d\u5efa\u7d22\u5f15&#xff1a;\u7528 EXPLAIN ANALYZE \u89c2\u5bdf\u6267\u884c\u8ba1\u5212&#xff0c;\u786e\u8ba4\u662f\u7d22\u5f15\u7f3a\u5931\u8fd8\u662f\u7edf\u8ba1\u4fe1\u606f\u4e0d\u51c6\u3002<\/p>\n<\/li>\n<p>\u628a\u8303\u5f0f\u3001\u6743\u9650\u3001\u67e5\u8be2\u4e09\u6761\u7ebf\u4e32\u5728\u4e00\u8d77&#xff0c;\u5c31\u80fd\u628a\u201c\u5199\u5f97\u5bf9\u201d\u201c\u7ba1\u5f97\u4f4f\u201d\u201c\u8dd1\u5f97\u5feb\u201d\u540c\u65f6\u505a\u5230\u3002\u613f\u4f60\u5728\u4e0b\u4e00\u4e2a\u9700\u6c42\u8bc4\u5ba1\u4f1a\u4e0a&#xff0c;\u65e2\u80fd\u6307\u51fa\u540c\u4e8b\u8868\u7684\u5197\u4f59&#xff0c;\u4e5f\u80fd\u5728 DBA \u9762\u524d\u4f18\u96c5\u5730\u62fc\u4e00\u628a\u7d22\u5f15\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb410\u6b21\uff0c\u70b9\u8d5e12\u6b21\uff0c\u6536\u85cf3\u6b21\u3002\u672c\u6587\u7cfb\u7edf\u4ecb\u7ecd\u4e86\u6570\u636e\u5e93\u8bbe\u8ba1\u7684\u4e09\u5927\u8981\u70b9\uff1a\u8303\u5f0f\u7406\u8bba\u3001\u6743\u9650\u7ba1\u7406\u548c\u9ad8\u6548\u67e5\u8be2\u3002\u5728\u8303\u5f0f\u90e8\u5206\uff0c\u91cd\u70b9\u8bb2\u89e3\u4e861NF\u52303NF\u7684\u6838\u5fc3\u539f\u5219\u53ca\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u6743\u8861\u53d6\u820d\uff0c\u5f3a\u8c03OLTP\u7cfb\u7edf\u5e94\u4f18\u5148\u6ee1\u8db33NF\uff0c\u800cOLAP\u7cfb\u7edf\u53ef\u9002\u5f53\u5197\u4f59\u3002\u6743\u9650\u7ba1\u7406\u7ae0\u8282\u8be6\u7ec6\u89e3\u6790\u4e86MySQL\u8d26\u53f7\u6743\u9650\u4f53\u7cfb\uff0c\u5305\u62ec\u521b\u5efa\u53ea\u8bfb\u8d26\u53f7\u3001\u9650\u5236\u8fde\u63a5\u6570\u7b49\u5b9e\u6218\u6280\u5de7\uff0c\u5e76\u6307\u51fa\u5e38\u89c1\u5b89\u5168\u8bef\u533a\u3002\u67e5\u8be2\u4f18\u5316\u90e8\u5206\u6df1\u5165\u5256\u6790\u4e86\u6761\u4ef6\u67e5\u8be2\u3001\u7d22\u5f15\u4f7f\u7528\u3001\u5206\u9875\u5904\u7406\u7b49\u5173\u952e\u70b9\uff0c\u7ed3\u5408\u7535\u5546\u8ba2\u5355\u7cfb\u7edf\u7684\u5b8c\u6574\u6848\u4f8b\uff0c\u6f14\u793a\u4e86\u5982\u4f55\u5c06\u8303\u5f0f\u8bbe\u8ba1\u3001\u6743\u9650\u63a7\u5236\u548c\u67e5\u8be2\u4f18\u5316\u6709\u673a\u7ed3\u5408\u3002\u6700\u540e\u63d0\u51fa&quot;\u7406\u8bba\u843d\u5730\u4e09\u677f\u65a7&quot;\uff1a\u5148ER\u56fe\u540e\u8303\u5f0f\u3001\u6700\u5c0f\u6743\u9650<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[114,768,100],"topic":[],"class_list":["post-55991","post","type-post","status-publish","format-standard","hentry","category-server","tag-mysql","tag-sql","tag-100"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6570\u636e\u5e93\u8bbe\u8ba1\u4e09\u8981\u7d20\uff1a\u8303\u5f0f\u3001\u6743\u9650\u4e0e\u67e5\u8be2 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\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.wsisp.com\/helps\/55991.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6570\u636e\u5e93\u8bbe\u8ba1\u4e09\u8981\u7d20\uff1a\u8303\u5f0f\u3001\u6743\u9650\u4e0e\u67e5\u8be2 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb410\u6b21\uff0c\u70b9\u8d5e12\u6b21\uff0c\u6536\u85cf3\u6b21\u3002\u672c\u6587\u7cfb\u7edf\u4ecb\u7ecd\u4e86\u6570\u636e\u5e93\u8bbe\u8ba1\u7684\u4e09\u5927\u8981\u70b9\uff1a\u8303\u5f0f\u7406\u8bba\u3001\u6743\u9650\u7ba1\u7406\u548c\u9ad8\u6548\u67e5\u8be2\u3002\u5728\u8303\u5f0f\u90e8\u5206\uff0c\u91cd\u70b9\u8bb2\u89e3\u4e861NF\u52303NF\u7684\u6838\u5fc3\u539f\u5219\u53ca\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u6743\u8861\u53d6\u820d\uff0c\u5f3a\u8c03OLTP\u7cfb\u7edf\u5e94\u4f18\u5148\u6ee1\u8db33NF\uff0c\u800cOLAP\u7cfb\u7edf\u53ef\u9002\u5f53\u5197\u4f59\u3002\u6743\u9650\u7ba1\u7406\u7ae0\u8282\u8be6\u7ec6\u89e3\u6790\u4e86MySQL\u8d26\u53f7\u6743\u9650\u4f53\u7cfb\uff0c\u5305\u62ec\u521b\u5efa\u53ea\u8bfb\u8d26\u53f7\u3001\u9650\u5236\u8fde\u63a5\u6570\u7b49\u5b9e\u6218\u6280\u5de7\uff0c\u5e76\u6307\u51fa\u5e38\u89c1\u5b89\u5168\u8bef\u533a\u3002\u67e5\u8be2\u4f18\u5316\u90e8\u5206\u6df1\u5165\u5256\u6790\u4e86\u6761\u4ef6\u67e5\u8be2\u3001\u7d22\u5f15\u4f7f\u7528\u3001\u5206\u9875\u5904\u7406\u7b49\u5173\u952e\u70b9\uff0c\u7ed3\u5408\u7535\u5546\u8ba2\u5355\u7cfb\u7edf\u7684\u5b8c\u6574\u6848\u4f8b\uff0c\u6f14\u793a\u4e86\u5982\u4f55\u5c06\u8303\u5f0f\u8bbe\u8ba1\u3001\u6743\u9650\u63a7\u5236\u548c\u67e5\u8be2\u4f18\u5316\u6709\u673a\u7ed3\u5408\u3002\u6700\u540e\u63d0\u51fa&quot;\u7406\u8bba\u843d\u5730\u4e09\u677f\u65a7&quot;\uff1a\u5148ER\u56fe\u540e\u8303\u5f0f\u3001\u6700\u5c0f\u6743\u9650\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/55991.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-14T03:04:43+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/55991.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/55991.html\",\"name\":\"\u6570\u636e\u5e93\u8bbe\u8ba1\u4e09\u8981\u7d20\uff1a\u8303\u5f0f\u3001\u6743\u9650\u4e0e\u67e5\u8be2 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-14T03:04:43+00:00\",\"dateModified\":\"2025-08-14T03:04:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/55991.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/55991.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/55991.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6570\u636e\u5e93\u8bbe\u8ba1\u4e09\u8981\u7d20\uff1a\u8303\u5f0f\u3001\u6743\u9650\u4e0e\u67e5\u8be2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6570\u636e\u5e93\u8bbe\u8ba1\u4e09\u8981\u7d20\uff1a\u8303\u5f0f\u3001\u6743\u9650\u4e0e\u67e5\u8be2 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/55991.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6570\u636e\u5e93\u8bbe\u8ba1\u4e09\u8981\u7d20\uff1a\u8303\u5f0f\u3001\u6743\u9650\u4e0e\u67e5\u8be2 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb410\u6b21\uff0c\u70b9\u8d5e12\u6b21\uff0c\u6536\u85cf3\u6b21\u3002\u672c\u6587\u7cfb\u7edf\u4ecb\u7ecd\u4e86\u6570\u636e\u5e93\u8bbe\u8ba1\u7684\u4e09\u5927\u8981\u70b9\uff1a\u8303\u5f0f\u7406\u8bba\u3001\u6743\u9650\u7ba1\u7406\u548c\u9ad8\u6548\u67e5\u8be2\u3002\u5728\u8303\u5f0f\u90e8\u5206\uff0c\u91cd\u70b9\u8bb2\u89e3\u4e861NF\u52303NF\u7684\u6838\u5fc3\u539f\u5219\u53ca\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u6743\u8861\u53d6\u820d\uff0c\u5f3a\u8c03OLTP\u7cfb\u7edf\u5e94\u4f18\u5148\u6ee1\u8db33NF\uff0c\u800cOLAP\u7cfb\u7edf\u53ef\u9002\u5f53\u5197\u4f59\u3002\u6743\u9650\u7ba1\u7406\u7ae0\u8282\u8be6\u7ec6\u89e3\u6790\u4e86MySQL\u8d26\u53f7\u6743\u9650\u4f53\u7cfb\uff0c\u5305\u62ec\u521b\u5efa\u53ea\u8bfb\u8d26\u53f7\u3001\u9650\u5236\u8fde\u63a5\u6570\u7b49\u5b9e\u6218\u6280\u5de7\uff0c\u5e76\u6307\u51fa\u5e38\u89c1\u5b89\u5168\u8bef\u533a\u3002\u67e5\u8be2\u4f18\u5316\u90e8\u5206\u6df1\u5165\u5256\u6790\u4e86\u6761\u4ef6\u67e5\u8be2\u3001\u7d22\u5f15\u4f7f\u7528\u3001\u5206\u9875\u5904\u7406\u7b49\u5173\u952e\u70b9\uff0c\u7ed3\u5408\u7535\u5546\u8ba2\u5355\u7cfb\u7edf\u7684\u5b8c\u6574\u6848\u4f8b\uff0c\u6f14\u793a\u4e86\u5982\u4f55\u5c06\u8303\u5f0f\u8bbe\u8ba1\u3001\u6743\u9650\u63a7\u5236\u548c\u67e5\u8be2\u4f18\u5316\u6709\u673a\u7ed3\u5408\u3002\u6700\u540e\u63d0\u51fa&quot;\u7406\u8bba\u843d\u5730\u4e09\u677f\u65a7&quot;\uff1a\u5148ER\u56fe\u540e\u8303\u5f0f\u3001\u6700\u5c0f\u6743\u9650","og_url":"https:\/\/www.wsisp.com\/helps\/55991.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-14T03:04:43+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/55991.html","url":"https:\/\/www.wsisp.com\/helps\/55991.html","name":"\u6570\u636e\u5e93\u8bbe\u8ba1\u4e09\u8981\u7d20\uff1a\u8303\u5f0f\u3001\u6743\u9650\u4e0e\u67e5\u8be2 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-14T03:04:43+00:00","dateModified":"2025-08-14T03:04:43+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/55991.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/55991.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/55991.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6570\u636e\u5e93\u8bbe\u8ba1\u4e09\u8981\u7d20\uff1a\u8303\u5f0f\u3001\u6743\u9650\u4e0e\u67e5\u8be2"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/55991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=55991"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/55991\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=55991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=55991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=55991"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=55991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}