
{"id":4103,"date":"2020-08-19T10:41:14","date_gmt":"2020-08-19T02:41:14","guid":{"rendered":"https:\/\/www.webteach.tw\/?p=4103"},"modified":"2020-08-19T10:41:14","modified_gmt":"2020-08-19T02:41:14","slug":"1055","status":"publish","type":"post","link":"https:\/\/www.webteach.tw\/?p=4103","title":{"rendered":"[ MySQL ] &#8211; How to fix error #1055 \u5982\u4f55\u89e3\u6c7a group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f"},"content":{"rendered":"<div style='text-align:center' class='yasr-auto-insert-overall'><\/div><div style='text-align:center' class='yasr-auto-insert-visitor'><\/div><div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" ><\/div>\n<p>\u5176\u5be6\u9019\u500b\u554f\u984c\u5c0f\u7de8\u8001\u65e9\u5c31\u9047\u904e\u4e86\uff0c\u4f46\u662f\u7576\u6642\u554f\u984c\u89e3\u6c7a\u5f8c\u6c92\u6709\u5beb\u4e0b\u7b46\u8a18\u6240\u4ee5\u53c8\u91cd\u65b0\u627e\u4e86\u4e00\u6b21\u89e3\u6cd5\uff0c\u679c\u7136\u8a8d\u771f\u5beb\u7b46\u8a18\u662f\u5fc5\u8981\u7684\u514d\u7684\u591a\u82b1\u4e00\u4e9b\u7121\u754f\u7684\u6642\u9593\u53bb\u505a\u91cd\u8986\u7684\u4e8b\uff0c\u9019\u6a23\u6211\u7684\u7522\u503c\u5c31\u4e0b\u964d\u4e86\uff1b\u554f\u984c\u5c31\u662f group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f\uff0c\u6703\u51fa\u73fe error #1055 \uff0c\u89e3\u6cd5\u4e5f\u5f88\u7c21\u55ae\u8a2d\u5b9a\u76f8\u95dc\u53c3\u6578\u5373\u53ef\u3002<\/p>\n\n\n<p>\u9019\u6a23\u662f\u53ef\u4ee5\u67e5\u8a62\u7684<\/p>\n\n\n<pre class=\"wp-block-code\"><code>select id, max(time) from table where age>'30' group by id;<\/code><\/pre>\n\n\n<p>\u4f46\u662f\u9019\u6a23\u591a\u500b\u6b04\u4f4d\u5c31\u6703\u51fa\u73fe\u932f\u8aa4<\/p>\n\n\n<pre class=\"wp-block-code\"><code>select id, max(time),name from table where age>'30' group by id;<\/code><\/pre>\n\n\n<p>\u932f\u8aa4\u8a0a\u606f<\/p>\n\n\n<h5 class=\"wp-block-heading\">1055 &#8211; Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column &#8216;db.table.columns&#8217; which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by<\/h5>\n\n\n<p>\u9810\u8a2d\u7684\u67e5\u8a62\u6a21\u5f0f\u53ea\u80fd\u986f\u793a group by \u6b04\u4f4d\uff0c\u5176\u5b83\u7684\u90fd\u53ea\u80fd\u662f\u529f\u80fd\u51fd\u5f0f<\/p>\n\n\n<p>\u89e3\u6c7a\u65b9\u6cd5\uff1a<br \/>\u53bbmysql\u505c\u7528 only_full_group_by \u8a2d\u5b9a<\/p>\n\n\n<pre class=\"wp-block-code\"><code>mysql -u root -p\nmysql> SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));\nQuery OK, 0 rows affected (0.00 sec)<\/code><\/pre>\n\n\n<p>\u53c3\u8003\u7db2\u5740\uff1a<br \/><a href=\"https:\/\/stackoverflow.com\/questions\/23921117\/disable-only-full-group-by\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/stackoverflow.com\/questions\/23921117\/disable-only-full-group-b<\/a><\/p>\n<div style='text-align:center' class='yasr-auto-insert-overall'><\/div><div style='text-align:center' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>\u5176\u5be6\u9019\u500b\u554f\u984c\u5c0f\u7de8\u8001\u65e9\u5c31\u9047\u904e\u4e86\uff0c\u4f46\u662f\u7576\u6642\u554f\u984c\u89e3\u6c7a\u5f8c\u6c92\u6709\u5beb\u4e0b\u7b46\u8a18\u6240\u4ee5\u53c8\u91cd\u65b0\u627e\u4e86\u4e00\u6b21\u89e3\u6cd5\uff0c\u679c\u7136\u8a8d\u771f\u5beb\u7b46\u8a18\u662f\u5fc5\u8981\u7684\u514d\u7684\u591a\u82b1\u4e00\u4e9b\u7121\u754f\u7684\u6642\u9593\u53bb\u505a\u91cd\u8986\u7684\u4e8b\uff0c\u9019\u6a23\u6211\u7684\u7522\u503c\u5c31\u4e0b\u964d\u4e86\uff1b\u554f\u984c\u5c31\u662f group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f\uff0c\u6703\u51fa\u73fe error #1055 \uff0c\u89e3\u6cd5\u4e5f\u5f88\u7c21\u55ae\u8a2d\u5b9a\u76f8\u95dc\u53c3\u6578\u5373\u53ef\u3002<\/p>\n","protected":false},"author":1,"featured_media":1867,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","footnotes":""},"categories":[34],"tags":[60,241,291,402,427],"class_list":["post-4103","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mysql","tag-60","tag-error","tag-group-by","tag-mysql","tag-only_full_group_by"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[ MySQL ] - How to fix error #1055 \u5982\u4f55\u89e3\u6c7a group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f - \u6df7\u6c34\u6478\u9b5a<\/title>\n<meta name=\"description\" content=\"\u5176\u5be6\u9019\u500b\u554f\u984c\u5c0f\u7de8\u8001\u65e9\u5c31\u9047\u904e\u4e86\uff0c\u4f46\u662f\u7576\u6642\u554f\u984c\u89e3\u6c7a\u5f8c\u6c92\u6709\u5beb\u4e0b\u7b46\u8a18\u6240\u4ee5\u53c8\u91cd\u65b0\u627e\u4e86\u4e00\u6b21\u89e3\u6cd5\uff0c\u679c\u7136\u8a8d\u771f\u5beb\u7b46\u8a18\u662f\u5fc5\u8981\u7684\u514d\u7684\u591a\u82b1\u4e00\u4e9b\u7121\u754f\u7684\u6642\u9593\u53bb\u505a\u91cd\u8986\u7684\u4e8b\uff0c\u9019\u6a23\u6211\u7684\u7522\u503c\u5c31\u4e0b\u964d\u4e86\uff1b\u554f\u984c\u5c31\u662f group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f\uff0c\u6703\u51fa\u73fe error #1055 \uff0c\u89e3\u6cd5\u4e5f\u5f88\u7c21\u55ae\u8a2d\u5b9a\u76f8\u95dc\u53c3\u6578\u5373\u53ef\u3002\" \/>\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.webteach.tw\/?p=4103\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[ MySQL ] - How to fix error #1055 \u5982\u4f55\u89e3\u6c7a group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f - \u6df7\u6c34\u6478\u9b5a\" \/>\n<meta property=\"og:description\" content=\"\u5176\u5be6\u9019\u500b\u554f\u984c\u5c0f\u7de8\u8001\u65e9\u5c31\u9047\u904e\u4e86\uff0c\u4f46\u662f\u7576\u6642\u554f\u984c\u89e3\u6c7a\u5f8c\u6c92\u6709\u5beb\u4e0b\u7b46\u8a18\u6240\u4ee5\u53c8\u91cd\u65b0\u627e\u4e86\u4e00\u6b21\u89e3\u6cd5\uff0c\u679c\u7136\u8a8d\u771f\u5beb\u7b46\u8a18\u662f\u5fc5\u8981\u7684\u514d\u7684\u591a\u82b1\u4e00\u4e9b\u7121\u754f\u7684\u6642\u9593\u53bb\u505a\u91cd\u8986\u7684\u4e8b\uff0c\u9019\u6a23\u6211\u7684\u7522\u503c\u5c31\u4e0b\u964d\u4e86\uff1b\u554f\u984c\u5c31\u662f group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f\uff0c\u6703\u51fa\u73fe error #1055 \uff0c\u89e3\u6cd5\u4e5f\u5f88\u7c21\u55ae\u8a2d\u5b9a\u76f8\u95dc\u53c3\u6578\u5373\u53ef\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webteach.tw\/?p=4103\" \/>\n<meta property=\"og:site_name\" content=\"\u6df7\u6c34\u6478\u9b5a\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-19T02:41:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webteach.tw\/wp-content\/uploads\/2017\/12\/FireShot-Capture-31-MySQL-__-MySQL-Logo-Downloads-https___www.mysql_.com_about_legal_logos.html.png\" \/>\n\t<meta property=\"og:image:width\" content=\"302\" \/>\n\t<meta property=\"og:image:height\" content=\"185\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"jeff\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005:\" \/>\n\t<meta name=\"twitter:data1\" content=\"jeff\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9810\u4f30\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4103#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4103\"},\"author\":{\"name\":\"jeff\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#\\\/schema\\\/person\\\/d434d754fd581338113eecfa923d7520\"},\"headline\":\"[ MySQL ] &#8211; How to fix error #1055 \u5982\u4f55\u89e3\u6c7a group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f\",\"datePublished\":\"2020-08-19T02:41:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4103\"},\"wordCount\":62,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4103#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.webteach.tw\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/FireShot-Capture-31-MySQL-__-MySQL-Logo-Downloads-https___www.mysql_.com_about_legal_logos.html.png\",\"keywords\":[\"#1055\",\"error\",\"GROUP BY\",\"mysql\",\"only_full_group_by\"],\"articleSection\":[\"MySql\"],\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.webteach.tw\\\/?p=4103#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4103\",\"url\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4103\",\"name\":\"[ MySQL ] - How to fix error #1055 \u5982\u4f55\u89e3\u6c7a group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f - \u6df7\u6c34\u6478\u9b5a\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4103#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4103#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.webteach.tw\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/FireShot-Capture-31-MySQL-__-MySQL-Logo-Downloads-https___www.mysql_.com_about_legal_logos.html.png\",\"datePublished\":\"2020-08-19T02:41:14+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#\\\/schema\\\/person\\\/d434d754fd581338113eecfa923d7520\"},\"description\":\"\u5176\u5be6\u9019\u500b\u554f\u984c\u5c0f\u7de8\u8001\u65e9\u5c31\u9047\u904e\u4e86\uff0c\u4f46\u662f\u7576\u6642\u554f\u984c\u89e3\u6c7a\u5f8c\u6c92\u6709\u5beb\u4e0b\u7b46\u8a18\u6240\u4ee5\u53c8\u91cd\u65b0\u627e\u4e86\u4e00\u6b21\u89e3\u6cd5\uff0c\u679c\u7136\u8a8d\u771f\u5beb\u7b46\u8a18\u662f\u5fc5\u8981\u7684\u514d\u7684\u591a\u82b1\u4e00\u4e9b\u7121\u754f\u7684\u6642\u9593\u53bb\u505a\u91cd\u8986\u7684\u4e8b\uff0c\u9019\u6a23\u6211\u7684\u7522\u503c\u5c31\u4e0b\u964d\u4e86\uff1b\u554f\u984c\u5c31\u662f group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f\uff0c\u6703\u51fa\u73fe error #1055 \uff0c\u89e3\u6cd5\u4e5f\u5f88\u7c21\u55ae\u8a2d\u5b9a\u76f8\u95dc\u53c3\u6578\u5373\u53ef\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4103#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webteach.tw\\\/?p=4103\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4103#primaryimage\",\"url\":\"https:\\\/\\\/www.webteach.tw\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/FireShot-Capture-31-MySQL-__-MySQL-Logo-Downloads-https___www.mysql_.com_about_legal_logos.html.png\",\"contentUrl\":\"https:\\\/\\\/www.webteach.tw\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/FireShot-Capture-31-MySQL-__-MySQL-Logo-Downloads-https___www.mysql_.com_about_legal_logos.html.png\",\"width\":302,\"height\":185,\"caption\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=4103#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9801\",\"item\":\"https:\\\/\\\/www.webteach.tw\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[ MySQL ] &#8211; How to fix error #1055 \u5982\u4f55\u89e3\u6c7a group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#website\",\"url\":\"https:\\\/\\\/www.webteach.tw\\\/\",\"name\":\"\u6df7\u6c34\u6478\u9b5a\",\"description\":\"\u5b78\u7121\u6b62\u5883,\u6559\u5b78\u76f8\u9577\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webteach.tw\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#\\\/schema\\\/person\\\/d434d754fd581338113eecfa923d7520\",\"name\":\"jeff\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g\",\"caption\":\"jeff\"},\"sameAs\":[\"http:\\\/\\\/35.72.55.111\"],\"url\":\"https:\\\/\\\/www.webteach.tw\\\/?author=1\"},false]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[ MySQL ] - How to fix error #1055 \u5982\u4f55\u89e3\u6c7a group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f - \u6df7\u6c34\u6478\u9b5a","description":"\u5176\u5be6\u9019\u500b\u554f\u984c\u5c0f\u7de8\u8001\u65e9\u5c31\u9047\u904e\u4e86\uff0c\u4f46\u662f\u7576\u6642\u554f\u984c\u89e3\u6c7a\u5f8c\u6c92\u6709\u5beb\u4e0b\u7b46\u8a18\u6240\u4ee5\u53c8\u91cd\u65b0\u627e\u4e86\u4e00\u6b21\u89e3\u6cd5\uff0c\u679c\u7136\u8a8d\u771f\u5beb\u7b46\u8a18\u662f\u5fc5\u8981\u7684\u514d\u7684\u591a\u82b1\u4e00\u4e9b\u7121\u754f\u7684\u6642\u9593\u53bb\u505a\u91cd\u8986\u7684\u4e8b\uff0c\u9019\u6a23\u6211\u7684\u7522\u503c\u5c31\u4e0b\u964d\u4e86\uff1b\u554f\u984c\u5c31\u662f group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f\uff0c\u6703\u51fa\u73fe error #1055 \uff0c\u89e3\u6cd5\u4e5f\u5f88\u7c21\u55ae\u8a2d\u5b9a\u76f8\u95dc\u53c3\u6578\u5373\u53ef\u3002","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.webteach.tw\/?p=4103","og_locale":"zh_TW","og_type":"article","og_title":"[ MySQL ] - How to fix error #1055 \u5982\u4f55\u89e3\u6c7a group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f - \u6df7\u6c34\u6478\u9b5a","og_description":"\u5176\u5be6\u9019\u500b\u554f\u984c\u5c0f\u7de8\u8001\u65e9\u5c31\u9047\u904e\u4e86\uff0c\u4f46\u662f\u7576\u6642\u554f\u984c\u89e3\u6c7a\u5f8c\u6c92\u6709\u5beb\u4e0b\u7b46\u8a18\u6240\u4ee5\u53c8\u91cd\u65b0\u627e\u4e86\u4e00\u6b21\u89e3\u6cd5\uff0c\u679c\u7136\u8a8d\u771f\u5beb\u7b46\u8a18\u662f\u5fc5\u8981\u7684\u514d\u7684\u591a\u82b1\u4e00\u4e9b\u7121\u754f\u7684\u6642\u9593\u53bb\u505a\u91cd\u8986\u7684\u4e8b\uff0c\u9019\u6a23\u6211\u7684\u7522\u503c\u5c31\u4e0b\u964d\u4e86\uff1b\u554f\u984c\u5c31\u662f group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f\uff0c\u6703\u51fa\u73fe error #1055 \uff0c\u89e3\u6cd5\u4e5f\u5f88\u7c21\u55ae\u8a2d\u5b9a\u76f8\u95dc\u53c3\u6578\u5373\u53ef\u3002","og_url":"https:\/\/www.webteach.tw\/?p=4103","og_site_name":"\u6df7\u6c34\u6478\u9b5a","article_published_time":"2020-08-19T02:41:14+00:00","og_image":[{"width":302,"height":185,"url":"https:\/\/www.webteach.tw\/wp-content\/uploads\/2017\/12\/FireShot-Capture-31-MySQL-__-MySQL-Logo-Downloads-https___www.mysql_.com_about_legal_logos.html.png","type":"image\/png"}],"author":"jeff","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005:":"jeff","\u9810\u4f30\u95b1\u8b80\u6642\u9593":"1 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webteach.tw\/?p=4103#article","isPartOf":{"@id":"https:\/\/www.webteach.tw\/?p=4103"},"author":{"name":"jeff","@id":"https:\/\/www.webteach.tw\/#\/schema\/person\/d434d754fd581338113eecfa923d7520"},"headline":"[ MySQL ] &#8211; How to fix error #1055 \u5982\u4f55\u89e3\u6c7a group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f","datePublished":"2020-08-19T02:41:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webteach.tw\/?p=4103"},"wordCount":62,"commentCount":0,"image":{"@id":"https:\/\/www.webteach.tw\/?p=4103#primaryimage"},"thumbnailUrl":"https:\/\/www.webteach.tw\/wp-content\/uploads\/2017\/12\/FireShot-Capture-31-MySQL-__-MySQL-Logo-Downloads-https___www.mysql_.com_about_legal_logos.html.png","keywords":["#1055","error","GROUP BY","mysql","only_full_group_by"],"articleSection":["MySql"],"inLanguage":"zh-TW","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webteach.tw\/?p=4103#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webteach.tw\/?p=4103","url":"https:\/\/www.webteach.tw\/?p=4103","name":"[ MySQL ] - How to fix error #1055 \u5982\u4f55\u89e3\u6c7a group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f - \u6df7\u6c34\u6478\u9b5a","isPartOf":{"@id":"https:\/\/www.webteach.tw\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webteach.tw\/?p=4103#primaryimage"},"image":{"@id":"https:\/\/www.webteach.tw\/?p=4103#primaryimage"},"thumbnailUrl":"https:\/\/www.webteach.tw\/wp-content\/uploads\/2017\/12\/FireShot-Capture-31-MySQL-__-MySQL-Logo-Downloads-https___www.mysql_.com_about_legal_logos.html.png","datePublished":"2020-08-19T02:41:14+00:00","author":{"@id":"https:\/\/www.webteach.tw\/#\/schema\/person\/d434d754fd581338113eecfa923d7520"},"description":"\u5176\u5be6\u9019\u500b\u554f\u984c\u5c0f\u7de8\u8001\u65e9\u5c31\u9047\u904e\u4e86\uff0c\u4f46\u662f\u7576\u6642\u554f\u984c\u89e3\u6c7a\u5f8c\u6c92\u6709\u5beb\u4e0b\u7b46\u8a18\u6240\u4ee5\u53c8\u91cd\u65b0\u627e\u4e86\u4e00\u6b21\u89e3\u6cd5\uff0c\u679c\u7136\u8a8d\u771f\u5beb\u7b46\u8a18\u662f\u5fc5\u8981\u7684\u514d\u7684\u591a\u82b1\u4e00\u4e9b\u7121\u754f\u7684\u6642\u9593\u53bb\u505a\u91cd\u8986\u7684\u4e8b\uff0c\u9019\u6a23\u6211\u7684\u7522\u503c\u5c31\u4e0b\u964d\u4e86\uff1b\u554f\u984c\u5c31\u662f group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f\uff0c\u6703\u51fa\u73fe error #1055 \uff0c\u89e3\u6cd5\u4e5f\u5f88\u7c21\u55ae\u8a2d\u5b9a\u76f8\u95dc\u53c3\u6578\u5373\u53ef\u3002","breadcrumb":{"@id":"https:\/\/www.webteach.tw\/?p=4103#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webteach.tw\/?p=4103"]}]},{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/www.webteach.tw\/?p=4103#primaryimage","url":"https:\/\/www.webteach.tw\/wp-content\/uploads\/2017\/12\/FireShot-Capture-31-MySQL-__-MySQL-Logo-Downloads-https___www.mysql_.com_about_legal_logos.html.png","contentUrl":"https:\/\/www.webteach.tw\/wp-content\/uploads\/2017\/12\/FireShot-Capture-31-MySQL-__-MySQL-Logo-Downloads-https___www.mysql_.com_about_legal_logos.html.png","width":302,"height":185,"caption":""},{"@type":"BreadcrumbList","@id":"https:\/\/www.webteach.tw\/?p=4103#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9801","item":"https:\/\/www.webteach.tw\/"},{"@type":"ListItem","position":2,"name":"[ MySQL ] &#8211; How to fix error #1055 \u5982\u4f55\u89e3\u6c7a group by \u9078\u53d6\u6b04\u4f4d\u975e\u529f\u80fd\u51fd\u5f0f"}]},{"@type":"WebSite","@id":"https:\/\/www.webteach.tw\/#website","url":"https:\/\/www.webteach.tw\/","name":"\u6df7\u6c34\u6478\u9b5a","description":"\u5b78\u7121\u6b62\u5883,\u6559\u5b78\u76f8\u9577","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webteach.tw\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-TW"},{"@type":"Person","@id":"https:\/\/www.webteach.tw\/#\/schema\/person\/d434d754fd581338113eecfa923d7520","name":"jeff","image":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/secure.gravatar.com\/avatar\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g","caption":"jeff"},"sameAs":["http:\/\/35.72.55.111"],"url":"https:\/\/www.webteach.tw\/?author=1"},false]}},"views":11665,"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":1,"sum_votes":2},"_links":{"self":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/posts\/4103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4103"}],"version-history":[{"count":0,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/posts\/4103\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/media\/1867"}],"wp:attachment":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}