{"id":1753,"date":"2010-07-19T16:52:44","date_gmt":"2010-07-19T09:52:44","guid":{"rendered":"http:\/\/astro.uni-altai.ru\/~aw\/blog\/?p=1753"},"modified":"2010-07-19T16:59:20","modified_gmt":"2010-07-19T09:59:20","slug":"tags-in-article","status":"publish","type":"post","link":"https:\/\/astro.altspu.ru\/~aw\/blog\/2010\/07\/tags-in-article.html","title":{"rendered":"\u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u043c\u0435\u0442\u043e\u043a \u0432&nbsp;\u0441\u0442\u0430\u0442\u044c\u0435"},"content":{"rendered":"<div class=\"kcite-section\" kcite-section-id=\"1753\">\n<p>\u0412\u0447\u0435\u0440\u0430 \u043f\u043e\u0437\u0434\u043d\u043e \u0432\u0435\u0447\u0435\u0440\u043e\u043c \u0432 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0435 \u0441 twitter-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c <a href=\"http:\/\/twitter.com\/TheNatd\">TheNatd<\/a> \u0432\u0441\u043f\u043b\u044b\u043b \u0432\u043e\u043f\u0440\u043e\u0441 \u043e\u0431 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u043c\u0435\u0442\u043e\u043a (\u0438\u043b\u0438 \u0442\u0430\u0433\u043e\u0432) \u043a \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435. \u0412 \u0442\u0432\u0438\u0442\u0442\u0435\u0440\u0435 \u0441\u0432\u043e\u0438 \u0441\u043e\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u044d\u0442\u043e\u0442 \u0441\u0447\u0435\u0442 \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e \u0438\u0437-\u0437\u0430 \u043a\u0440\u0430\u0442\u043a\u043e\u0441\u0442\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0445 \u0437\u0434\u0435\u0441\u044c \u0438 \u0432 \u0442\u0432\u0438\u0442\u0442\u0435\u0440\u0435 \u0434\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0442\u0430\u0433\u043e\u0432 \u0432 <a href=\"http:\/\/i.imgur.com\/VFWsK.jpg\">\u043e\u0431\u0441\u0443\u0436\u0434\u0430\u0435\u043c\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435<\/a> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u043b\u044f\u043c\u0438 &mdash; id \u0438 TagName, \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441\u0432\u044f\u0437\u0438 \u0442\u0430\u0433\u0430 \u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0432\u0438\u0434\u043e\u043c \u0438\u0437 \u0442\u0440\u0435\u0445 \u043f\u043e\u043b\u0435\u0439 id, PostID \u0438 TagID. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438\u0437 \u043c\u043e\u0434\u0435\u043b\u0438 \u044f \u043f\u043e\u043a\u0430 \u0442\u0440\u043e\u0433\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443 &mdash; \u043e\u043d\u0438 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u0435\u043d\u044f \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442. \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c \u0438\u0437 \u043c\u043e\u0434\u0435\u043b\u0438, \u0441\u0432\u044f\u0437\u0438 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0441\u0432\u044f\u0437\u0438 \u043c\u0435\u0436\u0434\u0443 \u0441\u0442\u0430\u0442\u044c\u044f\u043c\u0438 \u0438 \u0442\u0430\u0433\u0430\u043c\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u043a\u0430\u043a \u043c\u043d\u043e\u0433\u043e\u0435-\u043a-\u043c\u043d\u043e\u0433\u043e\u043c\u0443, \u0447\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f. <\/p>\n<p>\u0423\u0441\u043b\u043e\u0432\u0438\u043c\u0441\u044f, \u0447\u0442\u043e \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0442\u0435\u0440\u043c\u043e\u0432, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 \u0438 \u043d\u0430\u0431\u0438\u0440\u0430\u0435\u043c\u044b\u0445 \u0432 \u043f\u043e\u043b\u0435 textarea.<\/p>\n<p><strong>\u041e\u043f\u0438\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0439 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u0441 \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0442\u0430\u0433\u043e\u0432.<\/strong><br \/>\n\u041f\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c POST \u0438 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043a\u043b\u0430\u0434\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445. \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0447\u0442\u043e \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0430\u0433\u043e\u0432 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 tags (\u0410\u0442\u0440\u0438\u0431\u0443\u0442 name \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 textarea). \u0412 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0435 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 tags \u043d\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f \u0434\u043b\u044f \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0437\u0430\u043f\u044f\u0442\u0443\u044e. \u041f\u043e\u0441\u043b\u0435 \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u044f \u0434\u0435\u043b\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0430:<\/p>\n<ol>\n<li>\u0414\u0435\u043b\u0430\u0435\u043c SELECT-\u0437\u0430\u043f\u0440\u043e\u0441 \u043a \u0442\u0430\u0431\u043b\u0438\u0446\u0435 Tag \u0432\u0438\u0434\u0430: <kbd>SELECT id FROM Tag WHERE TagName='\".$tags[$i].\"';<\/kbd><\/li>\n<li>\u0415\u0441\u043b\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432\u0435\u0440\u043d\u0443\u043b \u043d\u0435\u043f\u0443\u0441\u0442\u043e\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c INSERT-\u0437\u0430\u043f\u0440\u043e\u0441 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441\u0432\u044f\u0437\u0438:  <kbd>INSERT INTO TagsInPost SET TagID='\".$TagID.\"', PostID='\".$PostID.\"';<\/kbd>\u0438\u043d\u0430\u0447\u0435 \u0434\u0435\u043b\u0430\u043c \u0442\u0440\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 (\u0438\u043b\u0438 \u0434\u0432\u0430 &mdash; \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0421\u0423\u0411\u0414 \u0438 \u0435\u0435 &laquo;\u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430&raquo;): <kbd>INSERT INTO Tag SET TagName='\".$tags[$i].\"'; SELECT id FROM Tag ORDER BY id DESC LIMIT 1; INSERT INTO TagsInPost SET TagID='\".$TagID.\"', PostID='\".$PostID.\"';<\/kbd><\/li>\n<\/ol>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c, \u0433\u043e\u0432\u043e\u0440\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 \u043c\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c: \u0411\u0435\u0440\u0435\u043c \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0435\u0441\u043b\u0438 \u043b\u0438 \u043e\u043d\u043e \u0443\u0436\u0435 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c, \u0442\u043e \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0432\u044f\u0437\u044c \u0438\u043d\u0430\u0447\u0435 \u0441\u043f\u0435\u0440\u0432\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u043e\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u0432 \u0411\u0414, \u0430 \u043f\u043e\u0442\u043e\u043c \u0443\u0436\u0435 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0432\u044f\u0437\u044c.<\/p>\n<p><strong>\u041e\u043f\u0438\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0439 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u0441 \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0442\u0430\u0433\u043e\u0432.<\/strong><br \/>\n\u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0441\u0435 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u043e &mdash; \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0432\u0441\u0435 \u0441\u0432\u044f\u0437\u0438 \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u0438 \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0442\u0430\u0433\u043e\u0432. \u0421\u0430\u043c\u0438 \u0442\u0430\u0433\u0438 \u043d\u0435 \u0443\u0434\u0430\u043b\u044f\u0435\u043c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0438\u0445 \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445. \u041d\u0430 \u044f\u0437\u044b\u043a\u0435 <abbr title=\"Structured Query Language &mdash; \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432\">SQL<\/abbr> \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439 \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a: <kbd>DELETE FROM TagsInPost WHERE PostID='\".$PostID.\"';<\/kbd>.<\/p>\n<p><strong>\u041e\u043f\u0438\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0439 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u0441 \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0442\u0430\u0433\u043e\u0432.<\/strong><br \/>\n\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u043c \u0431\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u0442\u043e\u0447\u043d\u043e \u0437\u043d\u0430\u0442\u044c, \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u043b\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0430\u0433\u043e\u0432 \u0438\u043b\u0438 \u043d\u0435\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u044e\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c: \u0441\u043d\u0430\u0447\u0430\u043b\u043e \u0443\u0434\u0430\u043b\u044f\u044e\u0442 \u0432\u0441\u0435 \u0441\u0432\u044f\u0437\u0438 (\u0441\u043b\u0443\u0447\u0430\u0439 &laquo;\u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438&raquo;), \u0430 \u043f\u043e\u0442\u043e\u043c \u0441\u0447\u0438\u0442\u0430\u044e\u0442 \u043d\u0430\u0431\u043e\u0440 \u0442\u0430\u0433\u043e\u0432 \u043d\u043e\u0432\u044b\u043c \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442 \u0438\u0445 \u0441 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430\u043c\u0438 \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 (\u0441\u043b\u0443\u0447\u0430\u0439 &laquo;\u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438&raquo;). <\/p>\n<p>\u041c\u0438\u043d\u0443\u0441\u043e\u043c \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0441\u0432\u044f\u0437\u0438 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0442\u0438 \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0442\u0430\u0442\u044c\u0438, \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0442\u043e\u0433\u043e, \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u043b\u0441\u044f \u043b\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0430\u0433\u043e\u0432 (&laquo;\u043c\u0435\u0442\u043e\u043a&raquo; \u0438\u043b\u0438 &laquo;\u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0441\u043b\u043e\u0432&raquo;) \u0438\u043b\u0438 \u043d\u0435\u0442.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u043e, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c, \u043d\u043e \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u043d\u0430\u043a\u043b\u0430\u0434\u0435\u043d \u0438\u0437-\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u0447\u0438\u0441\u043b\u0430 <abbr title=\"Structured Query Language &mdash; \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432\">SQL<\/abbr>-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. <\/p>\n<p>\u0428\u0430\u0433\u0438 \u0442\u0430\u043a\u043e\u0432\u044b:<\/p>\n<ol>\n<li>\u0414\u0435\u043b\u0430\u0435\u043c SELECT-\u0437\u0430\u043f\u0440\u043e\u0441 \u0432 \u0434\u0432\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u044f\u0441\u043d\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u043b\u0438 \u0442\u0430\u043a\u043e\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0435\u0441\u0442\u044c \u043b\u0438 \u0441\u0432\u044f\u0437\u044c \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c \u0438 \u0441\u0442\u0430\u0442\u044c\u0435\u0439: <kbd>SELECT Tag.id FROM TagsInPost p JOIN Tag t ON t.TagID=p.TagID WHERE p.PostID='\".$PostID.\"' AND t.TagName='\".$tags[$i].\"';<\/kbd><\/li>\n<li>\u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432\u0435\u0440\u043d\u0443\u043b \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u0435\u0441\u0442\u044c \u0438 \u0435\u0441\u0442\u044c \u0441\u0432\u044f\u0437\u044c &mdash; \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u043c, \u0438\u043d\u0430\u0447\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0435\u0441\u0442\u044c \u043b\u0438 \u0443\u0436\u0435 \u0442\u0430\u043a\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435: <kbd>SELECT id FROM Tag WHERE TagName='\".$tags[$i].\"';<\/kbd><\/li>\n<li>\u0415\u0441\u043b\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432\u0435\u0440\u043d\u0443\u043b \u043d\u0435\u043f\u0443\u0441\u0442\u043e\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c INSERT-\u0437\u0430\u043f\u0440\u043e\u0441 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441\u0432\u044f\u0437\u0438:  <kbd>INSERT INTO TagsInPost SET TagID='\".$TagID.\"', PostID='\".$PostID.\"';<\/kbd>\u0438\u043d\u0430\u0447\u0435 \u0434\u0435\u043b\u0430\u043c \u0442\u0440\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 (\u0438\u043b\u0438 \u0434\u0432\u0430 &mdash; \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0421\u0423\u0411\u0414 \u0438 \u0435\u0435 &laquo;\u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430&raquo;): <kbd>INSERT INTO Tag SET TagName='\".$tags[$i].\"'; SELECT id FROM Tag ORDER BY id DESC LIMIT 1; INSERT INTO TagsInPost SET TagID='\".$TagID.\"', PostID='\".$PostID.\"';<\/kbd><\/li>\n<\/ol>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u0435 \u0440\u043e\u0441\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u0431\u0443\u0434\u0435\u0442 \u043c\u0435\u043d\u0435\u0435 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u0440\u0443\u044e\u0449\u0438\u043c, \u043d\u043e \u044d\u0442\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u0434\u043e\u0440\u043e\u0433\u0438\u043c, \u0438\u0437-\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u0447\u0438\u0441\u043b\u0430 <abbr title=\"Structured Query Language &mdash; \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432\">SQL<\/abbr>-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.<\/p>\n<p><strong>\u041f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong> \u041f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 <abbr title=\"Structured Query Language &mdash; \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432\">SQL<\/abbr>-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u044f \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u043b, \u0447\u0442\u043e \u043f\u043e \u043a\u0430\u043a\u0438\u043c-\u043b\u0438\u0431\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \u0432 \u0421\u0423\u0411\u0414 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f (\u043b\u0438\u0431\u043e \u0438\u0445 \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0421\u0423\u0411\u0414, \u043b\u0438\u0431\u043e \u0435\u0441\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0445).<\/p>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \u0432\u0442\u043e\u0440\u043e\u0435:<\/strong> \u0414\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u044b\u0432\u043e\u0434\u0430 \u0441\u043f\u0438\u0441\u043a\u0430 \u0438\u0437 n \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u043e\u0431\u044b\u0447\u043d\u043e \u0432\u044b\u0431\u043e\u0440\u043a\u0430 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0440\u0430\u0437 \u043f\u043e \u0442\u0430\u0433\u0430\u043c. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0441\u043b\u043e\u0432, \u0442.\u043a. \u0431\u043e\u043b\u0435\u0435 \u0432\u0435\u0441\u043e\u043c\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u043e\u0431\u044b\u0447\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043f\u0435\u0440\u0432\u044b\u043c\u0438. \u0414\u043b\u044f \u0443\u0447\u0435\u0442\u0430 \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u043a\u0442\u0430 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441\u0432\u044f\u0437\u0438 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u043d\u043e \u043f\u043e\u043b\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u043e \u0431\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u043e\u043c \u043d\u043e\u043c\u0435\u0440\u0435 \u0441\u043b\u043e\u0432\u0430. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0442\u0430\u0433\u0430\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u0442\u0441\u044f, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0433\u0434\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c &laquo;\u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u0432\u044f\u0437\u0438&raquo; \u0438 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c UPDATE-\u0437\u0430\u043f\u0440\u043e\u0441 \u0434\u043b\u044f \u0430\u043a\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438.<\/p>\n<!-- kcite active, but no citations found -->\n<\/div>\n<p> <!-- kcite-section 1753 --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0447\u0435\u0440\u0430 \u043f\u043e\u0437\u0434\u043d\u043e \u0432\u0435\u0447\u0435\u0440\u043e\u043c \u0432 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0435 \u0441 twitter-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c TheNatd \u0432\u0441\u043f\u043b\u044b\u043b \u0432\u043e\u043f\u0440\u043e\u0441 \u043e\u0431 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u043c\u0435\u0442\u043e\u043a (\u0438\u043b\u0438 \u0442\u0430\u0433\u043e\u0432) \u043a \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435. \u0412 \u0442\u0432\u0438\u0442\u0442\u0435\u0440\u0435 \u0441\u0432\u043e\u0438 \u0441\u043e\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u044d\u0442\u043e\u0442 \u0441\u0447\u0435\u0442 \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e \u0438\u0437-\u0437\u0430 \u043a\u0440\u0430\u0442\u043a\u043e\u0441\u0442\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0445 \u0437\u0434\u0435\u0441\u044c \u0438 \u0432 \u0442\u0432\u0438\u0442\u0442\u0435\u0440\u0435 \u0434\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443.<br \/>\n\u0418\u0442\u0430\u043a, \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0442\u0430\u0433\u043e\u0432 \u0432 \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u0435\u043c\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u043b\u044f\u043c\u0438 &mdash; id [<a href=\"https:\/\/astro.altspu.ru\/~aw\/blog\/2010\/07\/tags-in-article.html\">&hellip;<\/a>]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[60,30],"tags":[378,379,125,58],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/astro.altspu.ru\/~aw\/blog\/wp-json\/wp\/v2\/posts\/1753"}],"collection":[{"href":"https:\/\/astro.altspu.ru\/~aw\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/astro.altspu.ru\/~aw\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/astro.altspu.ru\/~aw\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/astro.altspu.ru\/~aw\/blog\/wp-json\/wp\/v2\/comments?post=1753"}],"version-history":[{"count":0,"href":"https:\/\/astro.altspu.ru\/~aw\/blog\/wp-json\/wp\/v2\/posts\/1753\/revisions"}],"wp:attachment":[{"href":"https:\/\/astro.altspu.ru\/~aw\/blog\/wp-json\/wp\/v2\/media?parent=1753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/astro.altspu.ru\/~aw\/blog\/wp-json\/wp\/v2\/categories?post=1753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/astro.altspu.ru\/~aw\/blog\/wp-json\/wp\/v2\/tags?post=1753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}