{"id":183922,"date":"2024-05-08T21:56:17","date_gmt":"2024-05-08T13:56:17","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/183922.html"},"modified":"2024-05-08T21:56:29","modified_gmt":"2024-05-08T13:56:29","slug":"php%e6%80%8e%e4%b9%88%e5%88%a4%e6%96%admysql-%e6%95%b0%e6%8d%ae%e5%ba%93%e4%b8%ad%e5%ad%98%e5%9c%a8%e9%87%8d%e5%a4%8d%e7%b1%bb%e4%bc%bc%e5%86%85%e5%ae%b9","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/183922.html","title":{"rendered":"php\u600e\u4e48\u5224\u65admysql \u6570\u636e\u5e93\u4e2d\u5b58\u5728\u91cd\u590d\u7c7b\u4f3c\u5185\u5bb9"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27074824\/888f728e-da63-4739-bc97-10a6f71b5a9d.webp\" alt=\"php\u600e\u4e48\u5224\u65admysql \u6570\u636e\u5e93\u4e2d\u5b58\u5728\u91cd\u590d\u7c7b\u4f3c\u5185\u5bb9\" \/><\/p>\n<p><p>\u5728\u64cd\u4f5cMySQL\u6570\u636e\u5e93\u65f6\uff0c\u5224\u65ad\u6570\u636e\u5e93\u4e2d\u5b58\u5728\u7684\u91cd\u590d\u6216\u7c7b\u4f3c\u5185\u5bb9\u662f\u4e00\u9879\u91cd\u8981\u7684\u4efb\u52a1\u3002<strong>\u901a\u8fc7\u4f7f\u7528SQL\u67e5\u8be2\u8bed\u53e5\u3001\u7f16\u5199\u4e13\u95e8\u7684PHP\u51fd\u6570\u3001\u5229\u7528MySQL\u7684\u5185\u5efa\u51fd\u6570<\/strong>\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u8bc6\u522b\u5e76\u5904\u7406\u8fd9\u7c7b\u6570\u636e\u95ee\u9898\u3002\u5176\u4e2d\uff0c<strong>\u4f7f\u7528SQL\u67e5\u8be2\u8bed\u53e5<\/strong>\u662f\u6700\u76f4\u63a5\u4e5f\u6700\u9ad8\u6548\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528SQL\u67e5\u8be2\u8bed\u53e5<\/h3>\n<\/p>\n<p><h4>1. \u67e5\u627e\u91cd\u590d\u5185\u5bb9<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u4e00\u4e2aSQL\u67e5\u8be2\u8bed\u53e5\u6765\u627e\u51fa\u6570\u636e\u5e93\u4e2d\u5177\u6709\u91cd\u590d\u503c\u7684\u8bb0\u5f55\u3002\u8fd9\u901a\u5e38\u901a\u8fc7SELECT\u8bed\u53e5\u7ed3\u5408GROUP BY\u548cHAVING\u5b50\u53e5\u5b9e\u73b0\u3002\u5982\u4e0b\u9762\u7684\u4f8b\u5b50\u6240\u793a\uff0c\u6211\u4eec\u53ef\u4ee5\u627e\u5230\u5728\u67d0\u4e2a\u8868\u4e2d\u67d0\u5217\u91cd\u590d\u7684\u6240\u6709\u8bb0\u5f55\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sql\">SELECT column_name, COUNT(column_name) <\/p>\n<p>FROM table_name <\/p>\n<p>GROUP BY column_name <\/p>\n<p>HAVING COUNT(column_name) &gt; 1;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u67e5\u8be2\u5c06\u8fd4\u56de\u6307\u5b9a\u8868\u4e2d\u6307\u5b9a\u5217\u7684\u6240\u6709\u91cd\u590d\u503c\u53ca\u5176\u51fa\u73b0\u7684\u6b21\u6570\uff0c\u53ea\u663e\u793a\u51fa\u73b0\u8d85\u8fc7\u4e00\u6b21\u7684\u503c\u3002\u5229\u7528\u8fd9\u4e00\u67e5\u8be2\u8bed\u53e5\uff0c\u6211\u4eec\u53ef\u4ee5\u5feb\u901f\u8bc6\u522b\u51fa\u6570\u636e\u5e93\u4e2d\u7684\u91cd\u590d\u5185\u5bb9\uff0c\u5e76\u8fdb\u4e00\u6b65\u51b3\u5b9a\u5982\u4f55\u5904\u7406\u8fd9\u4e9b\u91cd\u590d\u9879\uff08\u5982\u5220\u9664\u3001\u5408\u5e76\u7b49\uff09\u3002<\/p>\n<\/p>\n<p><h4>2. \u67e5\u627e\u7c7b\u4f3c\u5185\u5bb9<\/h4>\n<\/p>\n<p><p>\u5bf9\u4e8e\u67e5\u627e\u7c7b\u4f3c\u4f46\u4e0d\u5b8c\u5168\u76f8\u540c\u7684\u5185\u5bb9\uff0c\u53ef\u4ee5\u5229\u7528MySQL\u7684\u4e00\u4e9b\u5b57\u7b26\u4e32\u51fd\u6570\uff0c\u5982<code>LIKE<\/code>\u3001<code>SOUNDEX()<\/code>\u51fd\u6570\u7b49\u3002<code>LIKE<\/code>\u7528\u4e8e\u67e5\u627e\u5177\u6709\u76f8\u4f3c\u6a21\u5f0f\u7684\u8bb0\u5f55\uff0c\u800c<code>SOUNDEX()<\/code>\u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u5b57\u7b26\u4e32\u7684phonetic\u8868\u793a\uff0c\u53ef\u4ee5\u7528\u6765\u67e5\u627e\u542c\u8d77\u6765\u76f8\u4f3c\u7684\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sql\">SELECT column_name <\/p>\n<p>FROM table_name <\/p>\n<p>WHERE column_name LIKE &#039;%pattern%&#039;;<\/p>\n<p>SELECT column_name <\/p>\n<p>FROM table_name <\/p>\n<p>WHERE SOUNDEX(column_name) = SOUNDEX(&#039;desired_value&#039;);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u7f16\u5199\u4e13\u95e8\u7684PHP\u51fd\u6570<\/h3>\n<\/p>\n<p><h4>1. \u7ed3\u5408PHP\u4e0eSQL<\/h4>\n<\/p>\n<p><p>\u5728PHP\u4ee3\u7801\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u51fd\u6570\u6765\u6267\u884c\u4e0a\u8ff0SQL\u67e5\u8be2\u8bed\u53e5\uff0c\u5e76\u5904\u7406\u67e5\u8be2\u7ed3\u679c\u3002\u901a\u8fc7\u4f7f\u7528\u5982PDO\u6216mysqli\u7b49\u6570\u636e\u5e93\u8fde\u63a5\u6269\u5c55\uff0c\u53ef\u4ee5\u5728PHP\u4ee3\u7801\u4e2d\u53d1\u9001\u67e5\u8be2\u8bf7\u6c42\u5230MySQL\u6570\u636e\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-php\">$db = new PDO(&#039;mysql:host=localhost;dbname=database_name&#039;, &#039;username&#039;, &#039;password&#039;);<\/p>\n<p>$query = &quot;SELECT column_name, COUNT(column_name) FROM table_name GROUP BY column_name HAVING COUNT(column_name) &gt; 1&quot;;<\/p>\n<p>$stmt = $db-&gt;prepare($query);<\/p>\n<p>$stmt-&gt;execute();<\/p>\n<p>$results = $stmt-&gt;fetchAll(PDO::FETCH_ASSOC);<\/p>\n<p>foreach ($results as $row) {<\/p>\n<p>    echo $row[&#039;column_name&#039;].&quot; appears &quot;.$row[&#039;COUNT(column_name)&#039;].&quot; times.&lt;br&gt;&quot;;<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5904\u7406\u7c7b\u4f3c\u5185\u5bb9\u7684\u641c\u7d22<\/h4>\n<\/p>\n<p><p>\u5bf9\u7c7b\u4f3c\u5185\u5bb9\u7684\u641c\u7d22\u5904\u7406\u53ef\u80fd\u8981\u590d\u6742\u4e00\u4e9b\uff0c\u56e0\u4e3a\u9700\u8981\u5728\u7a0b\u5e8f\u4e2d\u5b9e\u73b0\u4e00\u5b9a\u7684\u903b\u8f91\u6765\u5224\u65ad\u4f55\u4e3a\u201c\u7c7b\u4f3c\u201d\u3002\u4e00\u4e2a\u7b80\u5355\u7684\u65b9\u6cd5\u662f\uff0c\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u6216\u8005\u8ba1\u7b97\u5b57\u7b26\u4e32\u4e4b\u95f4\u7684\u76f8\u4f3c\u5ea6\uff08\u4f7f\u7528PHP\u5185\u7f6e\u51fd\u6570\u5982<code>similar_text()<\/code>\u6216<code>levenshtein()<\/code>\uff09\uff0c\u6765\u7f16\u5199\u51fd\u6570\u5224\u65ad\u6587\u672c\u4e4b\u95f4\u7684\u76f8\u4f3c\u5ea6\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u5229\u7528MySQL\u7684\u5185\u5efa\u51fd\u6570<\/h3>\n<\/p>\n<p><h4>1. \u4f7f\u7528MySQL\u7684\u5168\u6587\u7d22\u5f15<\/h4>\n<\/p>\n<p><p>\u5bf9\u4e8e\u5927\u89c4\u6a21\u6570\u636e\u7684\u7c7b\u4f3c\u5185\u5bb9\u67e5\u627e\uff0c\u53ef\u4ee5\u4f7f\u7528MySQL\u7684\u5168\u6587\u7d22\u5f15\u529f\u80fd\u3002\u901a\u8fc7\u4e3a\u8868\u4e2d\u7684\u6587\u5b57\u5217\u521b\u5efa\u5168\u6587\u7d22\u5f15\uff0c\u53ef\u4ee5\u8fdb\u884c\u9ad8\u6548\u7684\u6587\u672c\u641c\u7d22\uff0c\u627e\u51fa\u5305\u542b\u7279\u5b9a\u8bcd\u6c47\u6216\u77ed\u8bed\u7684\u8bb0\u5f55\u3002\u8fd9\u5bf9\u4e8e\u5904\u7406\u81ea\u7136\u8bed\u8a00\u6570\u636e\u7279\u522b\u6709\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-sql\">ALTER TABLE table_name ADD FULLTEXT(column_name);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5229\u7528MySQL\u7684\u6a21\u7cca\u641c\u7d22<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7\u4f7f\u7528<code>LIKE<\/code>\u6216<code>REGEXP<\/code>\u8fd0\u7b97\u7b26\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5bf9\u6570\u636e\u5e93\u4e2d\u6a21\u7cca\u5185\u5bb9\u7684\u641c\u7d22\u3002\u8fd9\u6837\u7684\u641c\u7d22\u5bf9\u4e8e\u9700\u8981\u627e\u5230\u5305\u542b\u7279\u5b9a\u6a21\u5f0f\u6216\u987a\u5e8f\u5b57\u7b26\u7684\u8bb0\u5f55\u7279\u522b\u6709\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-sql\">SELECT column_name FROM table_name WHERE column_name REGEXP &#039;pattern&#039;;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u7ed3\u8bba<\/h3>\n<\/p>\n<p><p>\u5224\u65adMySQL\u6570\u636e\u5e93\u4e2d\u5b58\u5728\u7684\u91cd\u590d\u6216\u7c7b\u4f3c\u5185\u5bb9\u6d89\u53ca\u5bf9SQL\u67e5\u8be2\u8bed\u53e5\u7684\u719f\u7ec3\u8fd0\u7528\u3001\u7f16\u5199\u6709\u6548\u7684PHP\u51fd\u6570\u4ee5\u53ca\u5229\u7528MySQL\u6570\u636e\u5e93\u7684\u9ad8\u7ea7\u529f\u80fd\u3002\u901a\u8fc7\u7ed3\u5408\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u6709\u6548\u5730\u8bc6\u522b\u5e76\u5904\u7406\u6570\u636e\u5e93\u4e2d\u7684\u91cd\u590d\u6216\u76f8\u4f3c\u6570\u636e\uff0c\u4fdd\u8bc1\u6570\u636e\u7684\u51c6\u786e\u6027\u548c\u4e00\u81f4\u6027\u3002\u5728\u5b9e\u9645\u7684\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u6839\u636e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u548c\u6570\u636e\u7279\u6027\u9009\u62e9\u5408\u9002\u7684\u6280\u672f\u8def\u5f84\u662f\u5341\u5206\u5173\u952e\u7684\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u4f7f\u7528PHP\u5224\u65adMySQL\u6570\u636e\u5e93\u4e2d\u662f\u5426\u5b58\u5728\u91cd\u590d\u7684\u5185\u5bb9\uff1f<\/strong><\/p>\n<p>\u5f53\u6211\u4eec\u9700\u8981\u63d2\u5165\u6570\u636e\u5230MySQL\u6570\u636e\u5e93\u4e2d\u65f6\uff0c\u6211\u4eec\u5e0c\u671b\u80fd\u591f\u5224\u65ad\u8be5\u6570\u636e\u662f\u5426\u5df2\u7ecf\u5b58\u5728\uff0c\u4ee5\u907f\u514d\u91cd\u590d\u63d2\u5165\u76f8\u540c\u7684\u6570\u636e\u3002\u5728PHP\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6b65\u9aa4\u6765\u5224\u65adMySQL\u6570\u636e\u5e93\u4e2d\u662f\u5426\u5b58\u5728\u91cd\u590d\u7684\u5185\u5bb9\uff1a<\/p>\n<ul>\n<li>\u9996\u5148\uff0c\u8fde\u63a5\u5230MySQL\u6570\u636e\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528<code>mysqli<\/code>\u6216<code>PDO<\/code>\u7b49\u6269\u5c55\u6269\u5c55\u3002<\/li>\n<li>\u5176\u6b21\uff0c\u6784\u5efa\u67e5\u8be2\u8bed\u53e5\uff0c\u4f7f\u7528<code>SELECT<\/code>\u8bed\u53e5\u6765\u68c0\u7d22\u6570\u636e\u5e93\u4e2d\u662f\u5426\u5b58\u5728\u76f8\u540c\u7684\u6570\u636e\u3002\u53ef\u4ee5\u4f7f\u7528<code>WHERE<\/code>\u5b50\u53e5\u6765\u6307\u5b9a\u8981\u67e5\u8be2\u7684\u5b57\u6bb5\u548c\u6761\u4ef6\u3002<\/li>\n<li>\u63a5\u4e0b\u6765\uff0c\u6267\u884c\u67e5\u8be2\u8bed\u53e5\uff0c\u5e76\u4f7f\u7528<code>mysqli_fetch_assoc<\/code>\u6216<code>PDOStatement::fetch<\/code>\u7b49\u65b9\u6cd5\u6765\u83b7\u53d6\u67e5\u8be2\u7ed3\u679c\u3002<\/li>\n<li>\u6700\u540e\uff0c\u5224\u65ad\u67e5\u8be2\u7ed3\u679c\u662f\u5426\u4e3a\u7a7a\u3002\u5982\u679c\u4e3a\u7a7a\uff0c\u5219\u8bf4\u660e\u6570\u636e\u5e93\u4e2d\u4e0d\u5b58\u5728\u91cd\u590d\u7684\u5185\u5bb9\uff1b\u5982\u679c\u4e0d\u4e3a\u7a7a\uff0c\u5219\u8bf4\u660e\u5df2\u7ecf\u5b58\u5728\u76f8\u540c\u7684\u6570\u636e\u3002<\/li>\n<\/ul>\n<p><strong>2. PHP\u5982\u4f55\u5224\u65adMySQL\u6570\u636e\u5e93\u4e2d\u662f\u5426\u5b58\u5728\u7c7b\u4f3c\u7684\u5185\u5bb9\uff1f<\/strong><\/p>\n<p>\u5728\u5b9e\u9645\u7684\u5f00\u53d1\u4e2d\uff0c\u6211\u4eec\u6709\u65f6\u9700\u8981\u5224\u65ad\u6570\u636e\u5e93\u4e2d\u662f\u5426\u5b58\u5728\u7c7b\u4f3c\u7684\u5185\u5bb9\uff0c\u5e76\u8fdb\u884c\u8fdb\u4e00\u6b65\u7684\u5904\u7406\u3002PHP\u63d0\u4f9b\u4e86\u51e0\u79cd\u65b9\u6cd5\u6765\u5b8c\u6210\u8fd9\u4e2a\u4efb\u52a1\uff1a<\/p>\n<ul>\n<li>\u53ef\u4ee5\u4f7f\u7528\u901a\u914d\u7b26\u6765\u67e5\u8be2\u6570\u636e\u5e93\uff0c\u5982\u4f7f\u7528<code>LIKE<\/code>\u5173\u952e\u5b57\u914d\u5408<code>%<\/code>\u6765\u5339\u914d\u90e8\u5206\u5185\u5bb9\u3002\u4f8b\u5982\uff0c<code>SELECT * FROM table_name WHERE field_name LIKE &#039;%keyword%&#039;<\/code>\uff0c\u8fd9\u6837\u53ef\u4ee5\u67e5\u8be2\u5305\u542b\u6307\u5b9a\u5173\u952e\u5b57\u7684\u5185\u5bb9\u3002<\/li>\n<li>\u8fd8\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5339\u914d\u6570\u636e\u5e93\u4e2d\u7684\u5185\u5bb9\u3002\u4f7f\u7528<code>REGEXP<\/code>\u5173\u952e\u5b57\uff0c\u4f8b\u5982<code>SELECT * FROM table_name WHERE field_name REGEXP &#039;pattern&#039;<\/code>\uff0c\u8fd9\u6837\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5339\u914d\u5185\u5bb9\u3002<\/li>\n<\/ul>\n<p>\u4f7f\u7528\u7c7b\u4f3c\u7684\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u6765\u5224\u65ad\u6570\u636e\u5e93\u4e2d\u662f\u5426\u5b58\u5728\u7c7b\u4f3c\u7684\u5185\u5bb9\u3002<\/p>\n<p><strong>3. \u600e\u6837\u5728PHP\u4e2d\u5224\u65adMySQL\u6570\u636e\u5e93\u4e2d\u662f\u5426\u5b58\u5728\u5176\u4ed6\u76f8\u4f3c\u7684\u5185\u5bb9\uff1f<\/strong><\/p>\n<p>\u9664\u4e86\u4e0a\u8ff0\u7684\u65b9\u6cd5\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u901a\u8fc7\u6a21\u7cca\u67e5\u8be2\u3001\u8ba1\u7b97\u5b57\u7b26\u4e32\u76f8\u4f3c\u5ea6\u7b49\u65b9\u5f0f\u6765\u5224\u65ad\u6570\u636e\u5e93\u4e2d\u662f\u5426\u5b58\u5728\u5176\u4ed6\u76f8\u4f3c\u7684\u5185\u5bb9\u3002<\/p>\n<ul>\n<li>\u53ef\u4ee5\u4f7f\u7528<code>SOUNDEX<\/code>\u51fd\u6570\u6765\u6a21\u7cca\u5339\u914d\u6570\u636e\u5e93\u4e2d\u7684\u5185\u5bb9\uff0c<code>SELECT * FROM table_name WHERE SOUNDEX(field_name) = SOUNDEX(&#039;keyword&#039;)<\/code>\u3002<\/li>\n<li>\u4f7f\u7528\u5b57\u7b26\u4e32\u5339\u914d\u7b97\u6cd5\uff0c\u5982Levenshtein\u8ddd\u79bb\u7b97\u6cd5\u6216Jaro-Winkler\u8ddd\u79bb\u7b97\u6cd5\uff0c\u53ef\u4ee5\u8ba1\u7b97\u5b57\u7b26\u4e32\u4e4b\u95f4\u7684\u76f8\u4f3c\u5ea6\u3002\u901a\u8fc7\u8ba1\u7b97\u4ee5\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u5224\u65ad\u6570\u636e\u5e93\u4e2d\u662f\u5426\u5b58\u5728\u76f8\u4f3c\u7684\u5185\u5bb9\u3002<\/li>\n<\/ul>\n<p>\u6839\u636e\u5177\u4f53\u7684\u9700\u6c42\u548c\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u6765\u5224\u65adMySQL\u6570\u636e\u5e93\u4e2d\u662f\u5426\u5b58\u5728\u5176\u4ed6\u76f8\u4f3c\u7684\u5185\u5bb9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728\u64cd\u4f5cMySQL\u6570\u636e\u5e93\u65f6\uff0c\u5224\u65ad\u6570\u636e\u5e93\u4e2d\u5b58\u5728\u7684\u91cd\u590d\u6216\u7c7b\u4f3c\u5185\u5bb9\u662f\u4e00\u9879\u91cd\u8981\u7684\u4efb\u52a1\u3002\u901a\u8fc7\u4f7f\u7528SQL\u67e5\u8be2\u8bed\u53e5\u3001\u7f16\u5199\u4e13\u95e8\u7684 [&hellip;]","protected":false},"author":3,"featured_media":183936,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/183922"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=183922"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/183922\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/183936"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=183922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=183922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=183922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}