{"id":852,"date":"2025-01-09T10:38:10","date_gmt":"2025-01-09T07:38:10","guid":{"rendered":"https:\/\/road-to-heaven.viro35.ru\/?page_id=852"},"modified":"2025-01-09T11:16:12","modified_gmt":"2025-01-09T08:16:12","slug":"%d0%b2%d0%be%d0%bf%d1%80%d0%be%d1%81%d1%8b-%d1%81-%d1%81%d0%be%d0%b1%d0%b5%d1%81%d0%be%d0%b2","status":"publish","type":"page","link":"https:\/\/road-to-heaven.viro35.ru\/?page_id=852","title":{"rendered":"\u0412\u043e\u043f\u0440\u043e\u0441\u044b \u0441 \u0441\u043e\u0431\u0435\u0441\u043e\u0432"},"content":{"rendered":"\n<p><strong>\u041c\u043e\u0436\u0435\u0442 \u043b\u0438 PRIMARY KEY \u0431\u044b\u0442\u044c \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u043c?<\/strong><\/p>\n\n\n\n<p>\u041e\u0442\u0432\u0435\u0442: \u0414\u0430<\/p>\n\n\n\n<p><strong>\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438<\/strong><\/p>\n\n\n\n<p>\u041e\u0442\u0432\u0435\u0442: select seller_id, count(*) from Orders GROUP BY seller_id <\/p>\n\n\n\n<p><strong>\u0427\u0442\u043e \u043d\u0435 \u0442\u0430\u043a \u0441 \u044d\u0442\u0438\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c: select id, date from Orders where seller_id = NULL<\/strong><\/p>\n\n\n\n<p>\u041e\u0442\u0432\u0435\u0442: \u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441 NULL \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c IS<\/p>\n\n\n\n<p><strong>\u041f\u043e\u0440\u044f\u0434\u043e\u043a \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 AND \u0438 OR \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439<\/strong><\/p>\n\n\n\n<p>\u041e\u0442\u0432\u0435\u0442: \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f AND, \u0430 \u0437\u0430\u0442\u0435\u043c OR. OR \u043f\u043e \u0441\u0443\u0442\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u0442 \u0443\u0441\u043b\u043e\u0432\u0438\u0435.<\/p>\n\n\n\n<p><strong>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u043f\u0435\u0446\u0441\u0438\u043c\u0432\u043e\u043b &#8216;_&#8217; \u0432 \u043f\u0430\u0440\u0435 \u0441 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c LIKE: select * from Orders where customer_name like &#8216;mik_&#8217;<\/strong><\/p>\n\n\n\n<p>\u041e\u0442\u0432\u0435\u0442: \u041d\u0430\u0439\u0434\u0435\u0442 \u0432\u0441\u0435 \u0438\u043c\u0435\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u043d\u0430 mik \u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u0442 \u0438\u0437 4 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432<\/p>\n\n\n\n<p><strong>\u041a\u0430\u043a \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0432 \u043d\u0443\u0436\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 PostgreSQL?<\/strong><\/p>\n\n\n\n<p>\u041e\u0442\u0432\u0435\u0442: \u041d\u0438\u043a\u0430\u043a, \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441 \u043d\u0443\u0436\u043d\u044b\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u043c \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432<\/p>\n\n\n\n<ul start=\"20\" class=\"wp-block-list\"><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u041c\u043e\u0436\u0435\u0442 \u043b\u0438 PRIMARY KEY \u0431\u044b\u0442\u044c \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u043c? \u041e\u0442\u0432\u0435\u0442: \u0414\u0430 \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438 \u041e\u0442\u0432\u0435\u0442: select seller_id, count(*) from Orders GROUP BY seller_id \u0427\u0442\u043e \u043d\u0435 \u0442\u0430\u043a \u0441 \u044d\u0442\u0438\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c:&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-852","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/road-to-heaven.viro35.ru\/index.php?rest_route=\/wp\/v2\/pages\/852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/road-to-heaven.viro35.ru\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/road-to-heaven.viro35.ru\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/road-to-heaven.viro35.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/road-to-heaven.viro35.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=852"}],"version-history":[{"count":8,"href":"https:\/\/road-to-heaven.viro35.ru\/index.php?rest_route=\/wp\/v2\/pages\/852\/revisions"}],"predecessor-version":[{"id":862,"href":"https:\/\/road-to-heaven.viro35.ru\/index.php?rest_route=\/wp\/v2\/pages\/852\/revisions\/862"}],"wp:attachment":[{"href":"https:\/\/road-to-heaven.viro35.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}