{"id":1615,"date":"2019-09-06T10:31:37","date_gmt":"2019-09-06T01:31:37","guid":{"rendered":"https:\/\/esoro.jp\/?p=1615"},"modified":"2019-09-06T10:31:37","modified_gmt":"2019-09-06T01:31:37","slug":"oracle%e3%81%8b%e3%82%89postgres%e3%81%b8%e3%81%ae%e7%a7%bb%e8%a1%8c%e3%81%a7create-sequence%e3%81%ab%e3%83%8f%e3%83%9e%e3%82%8b","status":"publish","type":"post","link":"https:\/\/esoro.jp\/?p=1615","title":{"rendered":"Oracle\u304b\u3089postgres\u3078\u306e\u79fb\u884c\u3067CREATE SEQUENCE\u306b\u30cf\u30de\u308b"},"content":{"rendered":"<p> OracleDB\u304b\u3089postgres\u3078\u79fb\u884c\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u30b7\u30fc\u30b1\u30f3\u30b9\u3092OracleSQLDeveloper\u304b\u3089DDL\u3092\u751f\u6210\u3057\u3066\u3001\u305d\u306e\u307e\u307epostgres\u306bCREATE SEQUENCE\u3057\u305f\u3068\u3053\u308d\u3001\u4e0b\u8a18\u30a8\u30e9\u30fc\u3067\u305d\u3093\u306a\u306e\u306a\u3044\u3088\u3068\u6012\u3089\u308c\u307e\u3059\u3002\u3002<\/p>\n<p>test_db=# select * from tran_id<br \/>\ntest_db-# ;<br \/>\nERROR:  relation tran_id does not exist<\/p>\n<p>\u5b9f\u884c\u3057\u305fDDL\u306f\u4e0b\u8a18\u306e\u5185\u5bb9\u3067\u3059\u3002<\/p>\n<p>   CREATE SEQUENCE  &#8220;TRAN_ID&#8221;  MINVALUE 1 MAXVALUE 99999999 INCREMENT BY 1 START WITH 1 CACHE 20 CYCLE   ;<\/p>\n<p>\u6a29\u9650\u5468\u308a\u3092\u898b\u76f4\u3057\u3066\u3082\u4f55\u3082\u5909\u308f\u3089\u305a\u3001\u8a66\u3057\u306b<\/p>\n<p>\u3000CREATE SEQUENCE  TRAN_ID  MINVALUE 1 MAXVALUE 99999999 INCREMENT BY 1 START WITH 1 CACHE 20 CYCLE   ;<\/p>\n<p>\u3092\u5b9f\u884c\u3057\u305f\u3068\u3053\u308d\u3001CREATE\u51fa\u6765\u305f\uff1f\u666e\u901a\u306bSQL\u3067\u30b7\u30fc\u30b1\u30f3\u30b9\u304c\u53d6\u308c\u305f\u3002\u3042\u308c\uff1f<\/p>\n<p>postgres\u306f\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u308b\u3068\u4ed8\u3051\u306a\u3044\u3067\u306f\u5225\u3082\u306e\u306b\u306a\u308b\u306e\u3067\u3059\u306d\u3002\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OracleDB\u304b\u3089postgres\u3078\u79fb\u884c\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u30b7\u30fc\u30b1\u30f3\u30b9\u3092Orac &hellip; <a href=\"https:\/\/esoro.jp\/?p=1615\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/posts\/1615"}],"collection":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1615"}],"version-history":[{"count":0,"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/posts\/1615\/revisions"}],"wp:attachment":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}