{"id":2200,"date":"2023-10-10T08:41:33","date_gmt":"2023-10-10T00:41:33","guid":{"rendered":"https:\/\/white-night.club\/?p=2200"},"modified":"2023-11-09T11:07:51","modified_gmt":"2023-11-09T03:07:51","slug":"ad34","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2023\/10\/10\/ad34\/","title":{"rendered":"620.\u00a0\u6709\u8da3\u7684\u7535\u5f71"},"content":{"rendered":"\n<p>\u8868\uff1a<code>cinema<\/code><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">+----------------+----------+\n| Column Name    | Type     |\n+----------------+----------+\n| id             | int      |\n| movie          | varchar  |\n| description    | varchar  |\n| rating         | float    |\n+----------------+----------+\nid \u662f\u8be5\u8868\u7684\u4e3b\u952e(\u5177\u6709\u552f\u4e00\u503c\u7684\u5217)\u3002\n\u6bcf\u884c\u5305\u542b\u6709\u5173\u7535\u5f71\u540d\u79f0\u3001\u7c7b\u578b\u548c\u8bc4\u7ea7\u7684\u4fe1\u606f\u3002\n\u8bc4\u7ea7\u4e3a [0,10] \u8303\u56f4\u5185\u7684\u5c0f\u6570\u70b9\u540e 2 \u4f4d\u6d6e\u70b9\u6570\u3002\n<\/pre>\n\n\n\n<p>\u7f16\u5199\u89e3\u51b3\u65b9\u6848\uff0c\u627e\u51fa\u6240\u6709\u5f71\u7247\u63cf\u8ff0\u4e3a&nbsp;<strong>\u975e<\/strong>&nbsp;<code>boring<\/code>&nbsp;(\u4e0d\u65e0\u804a)&nbsp;\u7684\u5e76\u4e14<strong>&nbsp;id \u4e3a\u5947\u6570&nbsp;<\/strong>\u7684\u5f71\u7247\u3002<\/p>\n\n\n\n<p>\u8fd4\u56de\u7ed3\u679c\u6309&nbsp;<code>rating<\/code>&nbsp;<strong>\u964d\u5e8f\u6392\u5217<\/strong>\u3002<\/p>\n\n\n\n<p>\u7ed3\u679c\u683c\u5f0f\u5982\u4e0b\u793a\u4f8b\u3002<\/p>\n\n\n\n<p><strong>\u793a\u4f8b 1\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u8f93\u5165\uff1a<\/strong>\n+---------+-----------+--------------+-----------+\n|   id    | movie     |  description |  rating   |\n+---------+-----------+--------------+-----------+\n|   1     | War       |   great 3D   |   8.9     |\n|   2     | Science   |   fiction    |   8.5     |\n|   3     | irish     |   boring     |   6.2     |\n|   4     | Ice song  |   Fantacy    |   8.6     |\n|   5     | House card|   Interesting|   9.1     |\n<strong>+---------+-----------+--------------+-----------+\n\u8f93\u51fa\uff1a<\/strong>\n+---------+-----------+--------------+-----------+\n|   id    | movie     |  description |  rating   |\n+---------+-----------+--------------+-----------+\n|   5     | House card|   Interesting|   9.1     |\n|   1     | War       |   great 3D   |   8.9     |\n+---------+-----------+--------------+-----------+\n<strong>\u89e3\u91ca\uff1a<\/strong>\n\u6211\u4eec\u6709\u4e09\u90e8\u7535\u5f71\uff0c\u5b83\u4eec\u7684 id \u662f\u5947\u6570:1\u30013 \u548c 5\u3002id = 3 \u7684\u7535\u5f71\u662f boring \u7684\uff0c\u6240\u4ee5\u6211\u4eec\u4e0d\u628a\u5b83\u5305\u62ec\u5728\u7b54\u6848\u4e2d\u3002<\/pre>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>\u89e3\u9898\u601d\u8def<\/p>\n<cite><em>order by desc<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u53c8\u4e0d\u592a\u8bb0\u5f97order by\u7684\u7528\u6cd5\u4e86\u3002order by\u540e\u9762\u8ddf\u5217\u540d\uff0c\u5176\u6b21\u518d\u8ddf\u7740ASC\u6216DESC\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Write your MySQL query statement below\r\nSELECT * FROM cinema\r\nWHERE description!=\"boring\" AND id%2!=0\r\nORDER BY rating DESC<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Leetcode\u9898\u76ee\uff1aorder by desc<\/p>\n","protected":false},"author":1,"featured_media":2827,"comment_status":"open","ping_status":"","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[42,25],"tags":[38],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/2200"}],"collection":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/comments?post=2200"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/2200\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media\/2827"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=2200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=2200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=2200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}