{"id":1059,"date":"2026-03-21T22:54:45","date_gmt":"2026-03-21T14:54:45","guid":{"rendered":"https:\/\/yunyanglib.cn\/?p=1059"},"modified":"2026-03-21T22:54:46","modified_gmt":"2026-03-21T14:54:46","slug":"%e3%80%90mysql%e3%80%91%e6%b7%b1%e5%85%a5%e6%b5%85%e5%87%basql%e6%b3%a8%e5%85%a5%ef%bc%9a%e5%8e%9f%e7%90%86%e3%80%81%e6%bc%94%e7%a4%ba%e4%b8%8e%e9%98%b2%e5%be%a1%e5%ae%9e%e6%88%98","status":"publish","type":"post","link":"https:\/\/yunyanglib.cn\/?p=1059","title":{"rendered":"\u3010MySQL\u3011\u6df1\u5165\u6d45\u51faSQL\u6ce8\u5165\uff1a\u539f\u7406\u3001\u6f14\u793a\u4e0e\u9632\u5fa1\u5b9e\u6218"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u4f5c\u4e3a\u540e\u7aef\u5f00\u53d1\u8005\uff0c\u6570\u636e\u5b89\u5168\u6c38\u8fdc\u662f\u7ed5\u4e0d\u5f00\u7684\u8bdd\u9898\u3002\u6700\u8fd1\u5728\u505a\u9879\u76ee\u5ba1\u8ba1\u65f6\uff0c\u53d1\u73b0\u5f88\u591a\u65b0\u624b\u5f00\u53d1\u8005\u5bb9\u6613\u5ffd\u7565 SQL \u6ce8\u5165\u98ce\u9669\uff0c\u4eca\u5929\u5c31\u5e26\u5927\u5bb6\u4ece\u96f6\u5f00\u59cb\u8ba4\u8bc6 SQL \u6ce8\u5165\uff0c\u901a\u8fc7\u5b9e\u6218\u6f14\u793a\u7406\u89e3\u5176\u5371\u5bb3\uff0c\u6700\u540e\u7ed9\u51fa\u53ef\u843d\u5730\u7684\u9632\u5fa1\u65b9\u6848\u3002\u6587\u7ae0\u5305\u542b\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b\uff0c\u65b0\u624b\u4e5f\u80fd\u8ddf\u7740\u64cd\u4f5c\uff5e<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e00\u3001\u4ec0\u4e48\u662f SQL \u6ce8\u5165\uff1f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">SQL \u6ce8\u5165\uff08SQL Injection\uff09\u662f web \u5e94\u7528\u4e2d\u6700\u5e38\u89c1\u7684\u5b89\u5168\u6f0f\u6d1e\u4e4b\u4e00\uff0c\u672c\u8d28\u662f\u653b\u51fb\u8005\u901a\u8fc7\u6784\u9020\u6076\u610f SQL \u8bed\u53e5\uff0c\u6ce8\u5165\u5230\u7528\u6237\u8f93\u5165\u5b57\u6bb5\u4e2d\uff0c\u6b3a\u9a97\u6570\u636e\u5e93\u6267\u884c\u975e\u9884\u671f\u64cd\u4f5c\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1.1 \u5148\u642d\u4e2a\u6d4b\u8bd5\u73af\u5883<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e3a\u4e86\u65b9\u4fbf\u6f14\u793a\uff0c\u6211\u4eec\u5148\u521b\u5efa\u6d4b\u8bd5\u8868\u5e76\u63d2\u5165\u6d4b\u8bd5\u6570\u636e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>use maria;\nCREATE TABLE users_info (\n    id INT AUTO_INCREMENT PRIMARY KEY,\n    username VARCHAR(50) NOT NULL,\n    password VARCHAR(50) NOT NULL,\n    contact VARCHAR(100) NOT NULL\n);\nINSERT INTO users_info (username, password, contact)\nVALUES ('user1', 'pass1', '123456789'),\n       ('user2', 'pass2', '987654321'),\n       ('user3', 'pass3', '121212123'),\n       ('user4', 'pass4', '989898987');\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">1.2 \u4e24\u79cd\u5178\u578b\u6ce8\u5165\u65b9\u5f0f<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">\uff081\uff09OR \u903b\u8f91\u6ce8\u5165<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b63\u5e38\u67e5\u8be2 SQL\uff08\u9a8c\u8bc1\u7528\u6237\u540d\u5bc6\u7801\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>select * from users_info where username='user1' and password='pass1';<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1001\" height=\"174\" src=\"https:\/\/yunyanglib.cn\/wp-content\/uploads\/2026\/03\/image-39.png\" alt=\"\" class=\"wp-image-1061\" srcset=\"https:\/\/yunyanglib.cn\/wp-content\/uploads\/2026\/03\/image-39.png 1001w, https:\/\/yunyanglib.cn\/wp-content\/uploads\/2026\/03\/image-39-300x52.png 300w, https:\/\/yunyanglib.cn\/wp-content\/uploads\/2026\/03\/image-39-768x133.png 768w\" sizes=\"(max-width: 1001px) 100vw, 1001px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u653b\u51fb\u8005\u5c06\u5bc6\u7801\u6539\u4e3a <code>' or 'a'='a<\/code>\uff0c\u6784\u9020\u51fa\u6076\u610f SQL\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>select * from users_info where username='user1' and password='' or 'a'='a';<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1002\" height=\"240\" src=\"https:\/\/yunyanglib.cn\/wp-content\/uploads\/2026\/03\/image-40.png\" alt=\"\" class=\"wp-image-1062\" srcset=\"https:\/\/yunyanglib.cn\/wp-content\/uploads\/2026\/03\/image-40.png 1002w, https:\/\/yunyanglib.cn\/wp-content\/uploads\/2026\/03\/image-40-300x72.png 300w, https:\/\/yunyanglib.cn\/wp-content\/uploads\/2026\/03\/image-40-768x184.png 768w\" sizes=\"(max-width: 1002px) 100vw, 1002px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u7531\u4e8e <code>'a'='a<\/code> \u6052\u4e3a\u771f\uff0c\u6761\u4ef6\u6574\u4f53\u6210\u7acb\uff0c\u5c06\u8fd4\u56de\u5168\u8868\u6570\u636e\uff01<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\uff082\uff09UNION \u8054\u5408\u67e5\u8be2\u6ce8\u5165<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u8fc7 UNION \u5173\u952e\u5b57\u62fc\u63a5\u67e5\u8be2\u8bed\u53e5\uff0c\u83b7\u53d6\u5176\u4ed6\u6570\u636e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-- \u539f\u59cb\u67e5\u8be2\nselect * from users_info where username='user1' and password='pass1';\n\n-- \u6ce8\u5165\u540e\nselect * from users_info where username='' UNION SELECT * FROM users_info ; -- ' and password='pass1';<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"208\" src=\"https:\/\/yunyanglib.cn\/wp-content\/uploads\/2026\/03\/image-42-1024x208.png\" alt=\"\" class=\"wp-image-1064\" srcset=\"https:\/\/yunyanglib.cn\/wp-content\/uploads\/2026\/03\/image-42-1024x208.png 1024w, https:\/\/yunyanglib.cn\/wp-content\/uploads\/2026\/03\/image-42-300x61.png 300w, https:\/\/yunyanglib.cn\/wp-content\/uploads\/2026\/03\/image-42-768x156.png 768w, https:\/\/yunyanglib.cn\/wp-content\/uploads\/2026\/03\/image-42.png 1172w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><code>--<\/code> \u662f SQL \u6ce8\u91ca\u7b26\uff0c\u540e\u9762\u7684\u5185\u5bb9\u4f1a\u88ab\u5ffd\u7565\uff0c\u6700\u7ec8\u6267\u884c\u4e24\u4e2a\u67e5\u8be2\u5e76\u5408\u5e76\u7ed3\u679c\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e8c\u3001SQL \u6ce8\u5165\u7684\u4e09\u5927\u81f4\u547d\u98ce\u9669<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u6570\u636e\u6cc4\u9732<\/strong>\uff1a\u7ed5\u8fc7\u767b\u5f55\u9a8c\u8bc1\uff0c\u7a83\u53d6\u7528\u6237\u5bc6\u7801\u3001\u624b\u673a\u53f7\u7b49\u654f\u611f\u4fe1\u606f<\/li>\n\n\n\n<li><strong>\u6570\u636e\u7be1\u6539<\/strong>\uff1a\u6ce8\u5165 UPDATE\/DELETE \u8bed\u53e5\uff0c\u6076\u610f\u4fee\u6539\u6216\u5220\u9664\u6570\u636e\u5e93\u6570\u636e<\/li>\n\n\n\n<li><strong>\u670d\u52a1\u4e2d\u65ad<\/strong>\uff1a\u6ce8\u5165 DROP TABLE \u7b49\u7834\u574f\u6027\u8bed\u53e5\uff0c\u5bfc\u81f4\u7cfb\u7edf\u762b\u75ea<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e09\u3001\u5b9e\u6218\u6f14\u793a\uff1a\u7528 Go \u5199\u4e00\u4e2a\u6613\u53d7\u653b\u51fb\u7684\u767b\u5f55\u7a0b\u5e8f<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">3.1 \u6f14\u793a\u4ee3\u7801\uff08\u5b58\u5728\u6ce8\u5165\u6f0f\u6d1e\uff09<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>package main\n\nimport (\n\t\"database\/sql\"\n\t\"fmt\"\n\t\"log\"\n\t\"net\/http\"\n\n\t_ \"github.com\/go-sql-driver\/mysql\" \/\/ MySQL\u9a71\u52a8\n)\n\nfunc main() {\n\t\/\/ \u6ce8\u518c\u767b\u5f55\u8def\u7531\uff0c\u5904\u7406GET\uff08\u663e\u793a\u9875\u9762\uff09\u548cPOST\uff08\u9a8c\u8bc1\u767b\u5f55\uff09\u8bf7\u6c42\n\thttp.HandleFunc(\"\/login\", loginHandler)\n\t\/\/ \u542f\u52a8HTTP\u670d\u52a1\uff0c\u76d1\u542c8080\u7aef\u53e3\n\tlog.Println(\"\u670d\u52a1\u542f\u52a8\uff1ahttp:\/\/localhost:8081\/login\")\n\tif err := http.ListenAndServe(\":8081\", nil); err != nil {\n\t\tlog.Fatal(\"\u670d\u52a1\u542f\u52a8\u5931\u8d25\uff1a\", err)\n\t}\n}\n\n\/\/ loginHandler\uff1a\u5904\u7406\u767b\u5f55\u903b\u8f91\nfunc loginHandler(w http.ResponseWriter, r *http.Request) {\n\t\/\/ 1. GET\u8bf7\u6c42\uff1a\u8fd4\u56de\u767b\u5f55\u8868\u5355\u9875\u9762\n\tif r.Method == \"GET\" {\n\t\thtml := `\n        &lt;!DOCTYPE html>\n        &lt;html>\n        &lt;head>&lt;title>\u7528\u6237\u767b\u5f55&lt;\/title>&lt;\/head>\n\n        &lt;body>\n            &lt;h2>\u8bf7\u767b\u5f55&lt;\/h2>\n\n            &lt;form method=\"POST\" action=\"\/login\">\n                \u7528\u6237\u540d\uff1a&lt;input type=\"text\" name=\"username\" required>&lt;br>&lt;br>\n                \u5bc6\u7801\uff1a&lt;input type=\"password\" name=\"password\" required>&lt;br>&lt;br>\n                &lt;input type=\"submit\" value=\"\u767b\u5f55\">\n            &lt;\/form>\n\n        &lt;\/body>\n\n        &lt;\/html>`\n\t\tfmt.Fprint(w, html)\n\t\treturn\n\t}\n\n\t\/\/ 2. POST\u8bf7\u6c42\uff1a\u5904\u7406\u767b\u5f55\u9a8c\u8bc1\n\tif r.Method == \"POST\" {\n\t\t\/\/ \u83b7\u53d6\u7528\u6237\u8f93\u5165\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\uff08\u672a\u505a\u4efb\u4f55\u8fc7\u6ee4\uff09\n\t\tusername := r.FormValue(\"username\")\n\t\tpassword := r.FormValue(\"password\")\n\t\tlog.Printf(\"\u63a5\u6536\u8bf7\u6c42\uff1ausername=%s, password=%s\", username, password)\n\n\t\t\/\/ \u8fde\u63a5\u6570\u636e\u5e93\uff08\u5b9e\u9645\u9879\u76ee\u9700\u7528\u914d\u7f6e\u6587\u4ef6\u5b58\u50a8\u8d26\u53f7\u5bc6\u7801\uff09\n\t\tdb, err := sql.Open(\"mysql\", \"go_rw:Ud7q_dac8@tcp(192.168.184.151:3306)\/maria\")\n\t\tif err != nil {\n\t\t\tlog.Fatal(\"\u6570\u636e\u5e93\u8fde\u63a5\u5931\u8d25\uff1a\", err)\n\t\t}\n\t\tdefer db.Close() \/\/ \u51fd\u6570\u7ed3\u675f\u524d\u5173\u95ed\u6570\u636e\u5e93\u8fde\u63a5\n\n\t\t\/\/ \u3010\u6f0f\u6d1e\u6838\u5fc3\u3011\u76f4\u63a5\u62fc\u63a5\u7528\u6237\u8f93\u5165\u5230SQL\u8bed\u53e5\u4e2d\n\t\tquery := fmt.Sprintf(\n\t\t\t\"SELECT COUNT(*) FROM users_info WHERE username = '%s' AND password = '%s'\",\n\t\t\tusername, password,\n\t\t)\n\t\tlog.Println(\"\u6267\u884cSQL\uff1a\", query)\n\n\t\t\/\/ \u6267\u884c\u67e5\u8be2\u5e76\u5224\u65ad\u767b\u5f55\u7ed3\u679c\n\t\tvar count int\n\t\tif err := db.QueryRow(query).Scan(&amp;count); err != nil {\n\t\t\tlog.Fatal(\"\u67e5\u8be2\u5931\u8d25\uff1a\", err)\n\t\t}\n\n\t\tif count > 0 {\n\t\t\tfmt.Fprint(w, \"\u767b\u5f55\u6210\u529f\uff01\")\n\t\t} else {\n\t\t\tfmt.Fprint(w, \"\u7528\u6237\u540d\u6216\u5bc6\u7801\u9519\u8bef\uff01\")\n\t\t}\n\t}\n}\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">3.2 \u6ce8\u5165\u6d4b\u8bd5\u6548\u679c<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6b63\u5e38\u767b\u5f55<\/strong>\uff1a\u8f93\u5165 <code>user1\/pass1<\/code> \u2192 \u767b\u5f55\u6210\u529f<\/li>\n\n\n\n<li><strong>\u6545\u610f\u8f93\u9519<\/strong>\uff1a\u8f93\u5165 <code>user1\/123<\/code> \u2192 \u767b\u5f55\u5931\u8d25<\/li>\n\n\n\n<li><strong>SQL \u6ce8\u5165\u653b\u51fb<\/strong>\uff1a\u7528\u6237\u540d\u968f\u4fbf\u586b\uff0c\u5bc6\u7801\u8f93\u5165 <code>' or 'a'='a<\/code> \u2192 \u76f4\u63a5\u767b\u5f55\u6210\u529f\uff01<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u6267\u884c\u7684\u6076\u610f SQL\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT COUNT(*) FROM users_info WHERE username = 'test' AND password = '' or 'a'='a'\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u56db\u3001\u5982\u4f55\u6709\u6548\u9884\u9632 SQL \u6ce8\u5165\uff1f<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">4.1 \u6838\u5fc3\u4fee\u590d\uff1a\u4f7f\u7528\u9884\u7f16\u8bd1\u8bed\u53e5<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u6709\u6548\u7684\u9632\u5fa1\u624b\u6bb5\u662f<strong>\u53c2\u6570\u5316\u67e5\u8be2<\/strong>\uff08\u9884\u7f16\u8bd1\u8bed\u53e5\uff09\uff0c\u907f\u514d\u76f4\u63a5\u62fc\u63a5\u7528\u6237\u8f93\u5165\u3002\u4fee\u6539\u4e0a\u8ff0\u4ee3\u7801\u7684\u67e5\u8be2\u90e8\u5206\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \u5371\u9669\u5199\u6cd5\uff08\u5df2\u5e9f\u5f03\uff09\n\/\/ query := fmt.Sprintf(\"SELECT COUNT(*) FROM users_info WHERE username = '%s' AND password = '%s'\", name, password)\n\n\/\/ \u5b89\u5168\u5199\u6cd5\uff1a\u4f7f\u7528\u5360\u4f4d\u7b26?\nquery := \"SELECT COUNT(*) FROM users_info WHERE username = ? AND password = ?\"\nvar count int\n\/\/ \u628a\u53c2\u6570\u5355\u72ec\u4f20\u5165\uff0c\u6570\u636e\u5e93\u4f1a\u81ea\u52a8\u5904\u7406\u8f6c\u4e49\nerr := db.QueryRow(query, name, password).Scan(&amp;count)\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4fee\u6539\u540e\u518d\u6d4b\u8bd5\u6ce8\u5165\uff1a\u8f93\u5165 <code>' or 'a'='a<\/code> \u4f1a\u88ab\u5f53\u4f5c\u666e\u901a\u5b57\u7b26\u4e32\u5904\u7406\uff0c\u65e0\u6cd5\u89e6\u53d1\u6ce8\u5165\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">4.2 \u5168\u65b9\u4f4d\u9632\u5fa1\u7b56\u7565<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u8f93\u5165\u6821\u9a8c\u4e0e\u8fc7\u6ee4<\/strong>\uff1a\u8fc7\u6ee4\u7279\u6b8a\u5b57\u7b26\uff08\u5982 <code>'<\/code>\u3001<code>--<\/code>\u3001<code>UNION<\/code> \u7b49\uff09\uff0c\u9a8c\u8bc1\u8f93\u5165\u683c\u5f0f<\/li>\n\n\n\n<li><strong>\u6743\u9650\u6700\u5c0f\u5316<\/strong>\uff1a\u6570\u636e\u5e93\u8d26\u53f7\u53ea\u5206\u914d\u5fc5\u8981\u6743\u9650\uff08\u5982\u67e5\u8be2\u8d26\u53f7\u65e0\u589e\u5220\u6539\u6743\u9650\uff09<\/li>\n\n\n\n<li><strong>\u6846\u67b6\u9009\u578b<\/strong>\uff1a\u4f7f\u7528 ORM \u6846\u67b6\uff08\u5982 GORM\u3001MyBatis\uff09\u81ea\u52a8\u5904\u7406 SQL \u62fc\u63a5<\/li>\n\n\n\n<li><strong>\u6f0f\u6d1e\u76d1\u63a7<\/strong>\uff1a\u5f00\u542f\u6570\u636e\u5e93\u5ba1\u8ba1\uff0c\u76d1\u63a7\u5305\u542b <code>1=1<\/code>\u3001<code>--<\/code> \u7b49\u5f02\u5e38 SQL<\/li>\n\n\n\n<li><strong>\u5b9a\u671f\u5347\u7ea7<\/strong>\uff1a\u53ca\u65f6\u66f4\u65b0\u6570\u636e\u5e93\u3001\u6846\u67b6\u7248\u672c\uff0c\u4fee\u590d\u5df2\u77e5\u6f0f\u6d1e<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u603b\u7ed3<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">SQL \u6ce8\u5165\u7684\u672c\u8d28\u662f<strong>\u4fe1\u4efb\u4e86\u7528\u6237\u8f93\u5165<\/strong>\uff0c\u9632\u5fa1\u7684\u6838\u5fc3\u662f<strong>never trust user input<\/strong>\uff01\u901a\u8fc7\u9884\u7f16\u8bd1\u8bed\u53e5 + \u8f93\u5165\u6821\u9a8c + \u6743\u9650\u63a7\u5236\u7684\u7ec4\u5408\u62f3\uff0c\u5c31\u80fd\u6709\u6548\u62b5\u5fa1\u7edd\u5927\u591a\u6570 SQL \u6ce8\u5165\u653b\u51fb\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5efa\u8bae\u5927\u5bb6\u56de\u5934\u68c0\u67e5\u81ea\u5df1\u7684\u9879\u76ee\uff0c\u770b\u770b\u662f\u5426\u5b58\u5728\u76f4\u63a5\u62fc\u63a5 SQL \u7684\u60c5\u51b5\uff0c\u8d76\u7d27\u4fee\u590d\uff5e \u5982\u679c\u4f60\u6709\u9047\u5230\u8fc7 SQL \u6ce8\u5165\u76f8\u5173\u7684\u5751\uff0c\u6216\u8005\u6709\u66f4\u597d\u7684\u9632\u5fa1\u65b9\u6848\uff0c\u6b22\u8fce\u5728\u8bc4\u8bba\u533a\u4ea4\u6d41\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u4e3a\u540e\u7aef\u5f00\u53d1\u8005\uff0c\u6570\u636e\u5b89\u5168\u6c38\u8fdc\u662f\u7ed5\u4e0d\u5f00\u7684\u8bdd\u9898\u3002\u6700\u8fd1\u5728\u505a\u9879\u76ee\u5ba1\u8ba1\u65f6\uff0c\u53d1\u73b0\u5f88\u591a\u65b0\u624b\u5f00\u53d1\u8005\u5bb9\u6613\u5ffd\u7565 SQL \u6ce8\u5165\u98ce\u9669\uff0c<\/p>\n<div class=\"more-link\">\n\t\t\t\t <a href=\"https:\/\/yunyanglib.cn\/?p=1059\" class=\"link-btn theme-btn\"><span>Read More <\/span> <i class=\"fa fa-caret-right\"><\/i><\/a>\n\t\t\t<\/div>\n","protected":false},"author":1,"featured_media":1065,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[16],"class_list":["post-1059","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mysql","tag-mysql"],"_links":{"self":[{"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/posts\/1059","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1059"}],"version-history":[{"count":2,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/posts\/1059\/revisions"}],"predecessor-version":[{"id":1066,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/posts\/1059\/revisions\/1066"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/media\/1065"}],"wp:attachment":[{"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}