{"id":298,"date":"2005-12-15T09:06:58","date_gmt":"2005-12-15T01:06:58","guid":{"rendered":"http:\/\/j178.mtgbb.com\/24"},"modified":"2005-12-15T09:06:58","modified_gmt":"2005-12-15T01:06:58","slug":"%e9%9a%a8%e6%a9%9f%e5%8f%96%e5%87%ba%e8%b3%87%e6%96%99%e7%9a%84%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/j178.mtgbb.com\/?p=298","title":{"rendered":"\u96a8\u6a5f\u53d6\u51fa\u8cc7\u6599\u7684\u65b9\u6cd5"},"content":{"rendered":"<p>\u5404\u7a2e\u8cc7\u6599\u5eab\u8edf\u9ad4, \u6709\u4e0d\u540c\u7684 SQL command<\/p>\n<p><span style=\"color: #00f000;\">mySql <\/span><br \/>\nSELECT column FROM table<br \/>\nORDER BY RAND()<br \/>\nLIMIT 1<\/p>\n<p><span style=\"color: #00f000;\">PostgreSQL <\/span><br \/>\nSELECT column FROM table<br \/>\nORDER BY RANDOM()<br \/>\nLIMIT 1<\/p>\n<p><span style=\"color: #00f000;\">Microsoft SQL Server <\/span><br \/>\nSELECT TOP 1 column FROM table<br \/>\nORDER BY NEWID()<\/p>\n<p><span style=\"color: #00f000;\">Oracle <\/span><br \/>\nSELECT column FROM<br \/>\n( SELECT column FROM table<br \/>\nORDER BY dbms_random.value )<br \/>\nWHERE rownum = 1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5404\u7a2e\u8cc7\u6599\u5eab\u8edf\u9ad4, \u6709\u4e0d\u540c\u7684 SQL command mySql SELECT column FROM tabl &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[30,23,24],"class_list":["post-298","post","type-post","status-publish","format-standard","hentry","category-database","tag-mysql","tag-oracle-db","tag-sql"],"_links":{"self":[{"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=\/wp\/v2\/posts\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298"}],"version-history":[{"count":0,"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions"}],"wp:attachment":[{"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}