{"id":27649,"date":"2024-11-24T10:08:17","date_gmt":"2024-11-24T02:08:17","guid":{"rendered":"https:\/\/fwq.ai\/blog\/27649\/"},"modified":"2024-11-24T10:08:17","modified_gmt":"2024-11-24T02:08:17","slug":"mysql%e4%b8%ad%e6%8f%92%e5%85%a5%e6%95%b0%e6%8d%ae%e6%97%b6%e9%81%87%e5%88%b0%e8%af%ad%e6%b3%95%e9%94%99%e8%af%af%e6%8f%90%e7%a4%ba%ef%bc%8c%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/27649\/","title":{"rendered":"MySQL\u4e2d\u63d2\u5165\u6570\u636e\u65f6\u9047\u5230\u201c\u8bed\u6cd5\u9519\u8bef\u201d\u63d0\u793a\uff0c\u5982\u4f55\u89e3\u51b3\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173130109913945.jpg\" class=\"aligncenter\" title=\"MySQL\u4e2d\u63d2\u5165\u6570\u636e\u65f6\u9047\u5230\u201c\u8bed\u6cd5\u9519\u8bef\u201d\u63d0\u793a\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u63d2\u56fe\" alt=\"MySQL\u4e2d\u63d2\u5165\u6570\u636e\u65f6\u9047\u5230\u201c\u8bed\u6cd5\u9519\u8bef\u201d\u63d0\u793a\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5728\u4e2d\u63d2\u5165\u6570\u636e\u65f6\u6536\u5230\u201c\u8bed\u6cd5\u9519\u8bef\u201d\u63d0\u793a\u7684\u89e3\u51b3\u65b9\u6848<\/strong><\/p>\n<p>\u5728mysql\u4e2d\u6267\u884c\u6570\u636e\u63d2\u5165\u64cd\u4f5c\u65f6\uff0c\u9047\u5230\u5982\u4e0b\u9519\u8bef\u63d0\u793a\uff1a\u201cerror 1064 (42000): you have an error in your sql syntax\u201d\uff0c\u53ef\u80fd\u8868\u793a\u63d2\u5165\u6307\u4ee4\u5b58\u5728\u8bed\u6cd5\u9519\u8bef\u3002<\/p>\n<p>\u4ed4\u7ec6\u68c0\u67e5\u63d0\u4f9b\u7684\uff1a<\/p>\n<pre>insert into app03_accountcontrol(mobiles,price,level,use)values(\"1231231231\",123.11,1,1);<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ece\u6570\u636e\u8868\u7684\u63cf\u8ff0\u4e2d\u53ef\u4ee5\u770b\u51fa\uff0c\u201cuse\u201d\u5b57\u6bb5\u4e3a\u4fdd\u7559\u5173\u952e\u5b57\u3002\u5728mysql\u4e2d\uff0c\u4fdd\u7559\u5173\u952e\u5b57\u662f\u9884\u5148\u5b9a\u4e49\u7684\u5173\u952e\u5b57\uff0c\u4e0d\u80fd\u4f5c\u4e3a\u8868\u5b57\u6bb5\u540d\u6216\u5176\u4ed6\u6807\u8bc6\u7b26\u4f7f\u7528\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u8981\u89e3\u51b3\u6b64\u8bed\u6cd5\u9519\u8bef\uff0c\u9700\u8981\u5c06\u201cuse\u201d\u5b57\u6bb5\u540d\u7528\u53cd\u5f15\u53f7\u62ec\u8d77\u6765\uff1a<\/p>\n<pre>insert into app03_accountcontrol(mobiles,price,level,`use`)values(\"1231231231\",123.11,1,1);<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4fee\u6539\u540e\u7684\u63d2\u5165\u6307\u4ee4\u5c06\u6210\u529f\u6267\u884c\uff0c\u5e76\u5728\u201capp03_accountcontrol\u201d\u6570\u636e\u8868\u4e2d\u63d2\u5165\u4e00\u6761\u8bb0\u5f55\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fMySQL\u4e2d\u63d2\u5165\u6570\u636e\u65f6\u9047\u5230\u201c\u8bed\u6cd5\u9519\u8bef\u201d\u63d0\u793a\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4e2d\u63d2\u5165\u6570\u636e\u65f6\u6536\u5230\u201c\u8bed\u6cd5\u9519\u8bef\u201d\u63d0\u793a\u7684\u89e3\u51b3\u65b9\u6848 \u5728mysql\u4e2d\u6267\u884c\u6570\u636e\u63d2\u5165\u64cd\u4f5c\u65f6\uff0c\u9047\u5230\u5982\u4e0b\u9519\u8bef\u63d0\u793a\uff1a\u201cerror 1064 (42000): you have an error in your sql syntax\u201d\uff0c\u53ef\u80fd\u8868\u793a\u63d2\u5165\u6307\u4ee4\u5b58\u5728\u8bed\u6cd5\u9519\u8bef\u3002 \u4ed4\u7ec6\u68c0\u67e5\u63d0\u4f9b\u7684\uff1a insert into app03_accountcontrol(mobiles,price,level,use)values(&#8220;1231231231&#8221;,123.11,1,1); \u767b\u5f55\u540e\u590d\u5236 \u4ece\u6570\u636e\u8868\u7684\u63cf\u8ff0\u4e2d\u53ef\u4ee5\u770b\u51fa\uff0c\u201cuse\u201d\u5b57\u6bb5\u4e3a\u4fdd\u7559\u5173\u952e\u5b57\u3002\u5728mysql\u4e2d\uff0c\u4fdd\u7559\u5173\u952e\u5b57\u662f\u9884\u5148\u5b9a\u4e49\u7684\u5173\u952e\u5b57\uff0c\u4e0d\u80fd\u4f5c\u4e3a\u8868\u5b57\u6bb5\u540d\u6216\u5176\u4ed6\u6807\u8bc6\u7b26\u4f7f\u7528\u3002 \u56e0\u6b64\uff0c\u8981\u89e3\u51b3\u6b64\u8bed\u6cd5\u9519\u8bef\uff0c\u9700\u8981\u5c06\u201cuse\u201d\u5b57\u6bb5\u540d\u7528\u53cd\u5f15\u53f7\u62ec\u8d77\u6765\uff1a insert into app03_accountcontrol(mobiles,price,level,`use`)values(&#8220;1231231231&#8221;,123.11,1,1); \u767b\u5f55\u540e\u590d\u5236 \u4fee\u6539\u540e\u7684\u63d2\u5165\u6307\u4ee4\u5c06\u6210\u529f\u6267\u884c\uff0c\u5e76\u5728\u201capp03_accountcontrol\u201d\u6570\u636e\u8868\u4e2d\u63d2\u5165\u4e00\u6761\u8bb0\u5f55\u3002 \u4ee5\u4e0a\u5c31\u662fMySQL\u4e2d\u63d2\u5165\u6570\u636e\u65f6\u9047\u5230\u201c\u8bed\u6cd5\u9519\u8bef\u201d\u63d0\u793a\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-27649","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/27649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=27649"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/27649\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=27649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=27649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=27649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}