{"id":2063,"date":"2020-07-29T23:31:08","date_gmt":"2020-07-29T15:31:08","guid":{"rendered":"http:\/\/39.97.231.10\/?p=2063"},"modified":"2020-07-29T23:31:08","modified_gmt":"2020-07-29T15:31:08","slug":"mysql%e5%8f%82%e6%95%b0%e8%a7%a3%e6%9e%90resultset_metadata","status":"publish","type":"post","link":"http:\/\/www.weijing.co\/?p=2063","title":{"rendered":"MySQL\u53c2\u6570\u89e3\u6790resultset_metadata"},"content":{"rendered":"<div>\n<div>\nresultset_metadata \u662f MySQL 8.0.3 \u7248\u672c\u5f15\u5165\u7684\u4e00\u4e2a\u53c2\u6570\uff0c\u5728MySQL Server\u8fd4\u56de\u67e5\u8be2\u7ed3\u679c\u7ed9\u5ba2\u6237\u7aef\u65f6\uff0c\u7528\u4e8e\u63a7\u5236\u662f\u5426\u8fd4\u56de\u7ed3\u679c\u96c6\u7684\u5143\u6570\u636e\u3002\n<\/div>\n<\/div>\n<div>\n<div>\n<ul>\n<li>\u4f5c\u7528\u8303\u56f4\uff1a\u4f1a\u8bdd\u7ea7(session)<\/li>\n<li>\u53d6\u503c\u8303\u56f4\uff1aFULL\uff0cNONE<\/li>\n<li>\u9ed8\u8ba4\u503c\uff1aFULL<\/li>\n<\/ul>\n<p>FULL\u8868\u793a\u8fd4\u56de\u6570\u636e\u96c6\u5143\u6570\u636e\uff0cNONE\u8868\u793a\u4e0d\u8fd4\u56de\u6570\u636e\u96c6\u5143\u6570\u636e\u3002<br \/>\n\u5bf9\u4e8e\u67d0\u4e9b\u4e0d\u652f\u6301\u5c06\u6570\u636e\u96c6\u5143\u6570\u636e\u662f\u5426\u8fd4\u56de\u8bbe\u7f6e\u4e3a\u53ef\u9009\u7684\u5ba2\u6237\u7aef\uff0c\u6bd4\u5982\u81ea\u5e26\u7684mysql\u547d\u4ee4\uff0c\u8bbe\u7f6e\u8be5\u53c2\u6570\u4e3aNONE\u65f6\uff0c\u5c06\u8fd4\u56de\u4e00\u4e2a\u9519\u8bef\uff0c\u5982\u4e0b\uff1a<\/p>\n<pre>mysql&gt; set resultset_metadata=NONE;\nERROR 3640 (HY000): The client doesn\\'t support optional metadata transfer\n<\/pre>\n<p>resultset_metadata \u53c2\u6570\u901a\u5e38\u5bf9MySQL\u7684\u8fde\u63a5\u9a71\u52a8\u6709\u6548\uff0c\u6bd4\u5982MySQL\u7684C API\uff0c\u5982\u679c\u8bbe\u7f6eresultset_metadata=NONE\uff0c\u90a3\u4e48C API\u7684\u5982\u4e0b\u51fd\u6570\uff0c\u5c06\u8fd4\u56deNULL\u3002<\/p>\n<ul>\n<li>mysql_fetch_field()<\/li>\n<li>mysql_fetch_field_direct()<\/li>\n<li>mysql_fetch_fields()<\/li>\n<\/ul>\n<p>\u5982\u4f55\u68c0\u67e5\u4e00\u4e2a\u7ed3\u679c\u96c6\u91cc\u9762\u662f\u5426\u5305\u542b\u5143\u6570\u636e\uff0c\u53ef\u901a\u8fc7C API\u51fd\u6570 mysql_result_metadata()\uff0c\u5b83\u8fd4\u56de\u7684\u503c\u6709\u4e24\u4e2a\uff0c\u5982\u4e0b\u6240\u793a\uff0c\u901a\u8fc7\u8fd9\u4e24\u4e2a\u503c\u5c31\u80fd\u77e5\u9053\u7ed3\u679c\u96c6\u4e2d\u662f\u5426\u5305\u542b\u5143\u6570\u636e\uff1a<\/p>\n<ul>\n<li>RESULTSET_METADATA_FULL<\/li>\n<li>RESULTSET_METADATA_NONE<\/li>\n<\/ul>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>resultset_metadata \u662f MySQL 8.0.3 \u7248\u672c\u5f15\u5165\u7684\u4e00\u4e2a\u53c2\u6570\uff0c\u5728MySQL Serve &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"http:\/\/www.weijing.co\/?p=2063\"> <span class=\"screen-reader-text\">MySQL\u53c2\u6570\u89e3\u6790resultset_metadata<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[90,88],"tags":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"mailpoet_newsletter_max":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false,"shop_catalog":false,"shop_single":false,"shop_thumbnail":false},"uagb_author_info":{"display_name":"weijing","author_link":"http:\/\/www.weijing.co\/?author=4"},"uagb_comment_info":0,"uagb_excerpt":"resultset_metadata \u662f MySQL 8.0.3 \u7248\u672c\u5f15\u5165\u7684\u4e00\u4e2a\u53c2\u6570\uff0c\u5728MySQL Serve&hellip;","_links":{"self":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/2063"}],"collection":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2063"}],"version-history":[{"count":0,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/2063\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2063"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}