{"id":1756,"date":"2019-01-19T15:47:45","date_gmt":"2019-01-19T07:47:45","guid":{"rendered":"http:\/\/www.vmsvr.com\/wordpress\/?p=1756"},"modified":"2019-01-19T15:47:45","modified_gmt":"2019-01-19T07:47:45","slug":"mysql%e5%a4%9a%e5%ad%97%e6%ae%b5%e6%a8%a1%e7%b3%8a%e6%90%9c%e7%b4%a2","status":"publish","type":"post","link":"https:\/\/www.vmsvr.com\/wordpress\/network\/2019\/01\/19\/1756.html","title":{"rendered":"mysql\u591a\u5b57\u6bb5\u6a21\u7cca\u641c\u7d22"},"content":{"rendered":"\n<p>\u6700\u8fd1\u6253\u7b97\u4f7f\u7528mysql\u591a\u5b57\u6bb5\u641c\u7d22\uff0c\u4f46\u662f\u53c8\u4e0d\u60f3\u4e00\u4e2a\u5b57\u6bb5\u4e00\u4e2a\u5b57\u6bb5\u7684\u5199\u6761\u4ef6\u3002\u53c2\u8003\u7f51\u4e0a\u53d1\u73b0\u53ef\u4ee5\u4f7f\u7528CONCAT\u6765\u5408\u5e76\u5b57\u6bb5\u67e5\u8be2\uff0c\u540c\u65f6\u4e3a\u4e86\u9632\u6b62\u6709\u4e9b\u5b57\u6bb5\u503c\u4e3aNull\uff0c\u9020\u6210\u7ed3\u679c\u4e3a\u7a7a\uff0c\u53ef\u4ee5\u4f7f\u7528IFNULL(\u5b57\u6bb5\u540d,&#8221;&#8221;)\u6765\u5904\u7406\u3002\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT * FROM dwsv_property where CONCAT(IFNULL(name,\"\"),IFNULL(model,\"\"),IFNULL(version,\"\")) like '%8AFDF%' <\/code><\/pre>\n\n\n\n<p>\u6709\u9700\u8981\u7684\u53ef\u4ee5\u8bd5\u4e0b\uff0c\u5982\u679c\u4e2a\u522b\u5b57\u6bb5\u786e\u5b9a\u6ca1\u6709null\uff0c\u90a3\u4e2a\u5b57\u6bb5\u5c31\u53ef\u4ee5\u4e0d\u7528 <br \/>IFNULL(\u5b57\u6bb5\u540d,&#8221;&#8221;) \uff0c\u76f4\u63a5\u5199\u5b57\u6bb5\u540d\uff0c\u6bd4\u5982:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT * FROM dwsv_property where CONCAT(name,IFNULL(model,\"\"),IFNULL(version,\"\")) like '%8AFDF%' <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u6253\u7b97\u4f7f\u7528mysql\u591a\u5b57\u6bb5\u641c\u7d22\uff0c\u4f46\u662f\u53c8\u4e0d\u60f3\u4e00\u4e2a\u5b57\u6bb5\u4e00\u4e2a\u5b57\u6bb5\u7684\u5199\u6761\u4ef6\u3002\u53c2\u8003\u7f51\u4e0a\u53d1 &hellip; <a href=\"https:\/\/www.vmsvr.com\/wordpress\/network\/2019\/01\/19\/1756.html\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[83],"tags":[77],"class_list":["post-1756","post","type-post","status-publish","format-standard","hentry","category-network","tag-mysql"],"views":2558,"_links":{"self":[{"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/posts\/1756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1756"}],"version-history":[{"count":0,"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/posts\/1756\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}