{"id":1452,"date":"2012-04-10T21:29:21","date_gmt":"2012-04-10T13:29:21","guid":{"rendered":"http:\/\/doophp.sinaapp.com\/?p=1452"},"modified":"2012-04-10T21:29:21","modified_gmt":"2012-04-10T13:29:21","slug":"oracle-sequence","status":"publish","type":"post","link":"https:\/\/blog.vimge.com\/archives\/other\/oracle-sequence.html","title":{"rendered":"Oracle\u5e8f\u5217\u6982\u5ff5\u4e0e\u81ea\u589e\u5b57\u6bb5\u7684\u521b\u5efa"},"content":{"rendered":"

\u5e8f\u5217(SEQUENCE)<\/strong>\u662f\u5e8f\u5217\u53f7\u751f\u6210\u5668\uff0c\u53ef\u4ee5\u4e3a\u8868\u4e2d\u7684\u884c\u81ea\u52a8\u751f\u6210\u5e8f\u5217\u53f7\uff0c\u4ea7\u751f\u4e00\u7ec4\u7b49\u95f4\u9694\u7684\u6570\u503c(\u7c7b\u578b\u4e3a\u6570\u5b57)\u3002\u5176\u4e3b\u8981\u7684\u7528\u9014\u662f\u751f\u6210\u8868\u7684\u4e3b\u952e\u503c\uff0c\u53ef\u4ee5\u5728\u63d2\u5165\u8bed\u53e5\u4e2d\u5f15\u7528\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u67e5\u8be2\u68c0\u67e5\u5f53\u524d\u503c\uff0c\u6216\u4f7f\u5e8f\u5217\u589e\u81f3\u4e0b\u4e00\u4e2a\u503c\u3002<\/p>\n

\u4e5f\u8bb8\u4f60\u4f1a\u60f3\u5230\u6709\u4e2a\u4e0eSequence\u975e\u5e38\u76f8\u4f3c\u7684\u6982\u5ff5\uff1aidentity<\/p>\n

Sequence\u4e0eidentity\u7684\u57fa\u672c\u4f5c\u7528\u90fd\u5dee\u4e0d\u591a\u3002\u90fd\u53ef\u4ee5\u751f\u6210\u81ea\u589e\u6570\u5b57\u5e8f\u5217\u3002Sequence\u662f\u6570\u636e\u5e93\u7cfb\u7edf\u4e2d\u7684\u4e00\u4e2a\u5bf9\u8c61\uff0c\u53ef\u4ee5\u5728\u6574\u4e2a\u6570\u636e\u5e93\u4e2d\u4f7f\u7528\uff0c\u548c\u8868\u6ca1\u6709\u4efb\u4f55\u5173\u7cfb\uff1bidentity\u4ec5\u4ec5\u662f\u6307\u5b9a\u5728\u8868\u4e2d\u67d0\u4e00\u5217\u4e0a\uff0c\u4f5c\u7528\u8303\u56f4\u5c31\u662f\u8fd9\u4e2a\u8868\u3002<\/p>\n

\u521b\u5efa\u5e8f\u5217\u9700\u8981CREATE SEQUENCE\u7cfb\u7edf\u6743\u9650<\/p>\n

CREATE SEQUENCE \u5e8f\u5217\u540d<\/p>\n

[INCREMENT BY n]<\/p>\n

[START WITH n]<\/p>\n

[{MAXVALUE\/ MINVALUE n|NOMAXVALUE}]<\/p>\n

[{CYCLE|NOCYCLE}]<\/p>\n

[{CACHE n|NOCACHE}];<\/p><\/blockquote>\n

INCREMENT BY \u7528\u4e8e\u5b9a\u4e49\u5e8f\u5217\u7684\u6b65\u957f\uff0c\u5982\u679c\u7701\u7565\uff0c\u5219\u9ed8\u8ba4\u4e3a1\uff0c\u5982\u679c\u51fa\u73b0\u8d1f\u503c\uff0c\u5219\u4ee3\u8868\u5e8f\u5217\u7684\u503c\u662f\u6309\u7167\u6b64\u6b65\u957f\u9012\u51cf\u7684\u3002<\/p>\n

START WITH \u5b9a\u4e49\u5e8f\u5217\u7684\u521d\u59cb\u503c(\u5373\u4ea7\u751f\u7684\u7b2c\u4e00\u4e2a\u503c)\uff0c\u9ed8\u8ba4\u4e3a1\u3002<\/p>\n

MAXVALUE \u5b9a\u4e49\u5e8f\u5217\u751f\u6210\u5668\u80fd\u4ea7\u751f\u7684\u6700\u5927\u503c\u3002\u9009\u9879NOMAXVALUE\u662f\u9ed8\u8ba4\u9009\u9879\uff0c\u4ee3\u8868\u6ca1\u6709\u6700\u5927\u503c\u5b9a\u4e49\uff0c\u8fd9\u65f6\u5bf9\u4e8e\u9012\u589e\u5e8f\u5217\uff0c\u7cfb\u7edf\u80fd\u591f\u4ea7\u751f\u7684\u6700\u5927\u503c\u662f10\u768427\u6b21\u65b9;\u5bf9\u4e8e\u9012\u51cf\u5e8f\u5217\uff0c\u6700\u5927\u503c\u662f-1\u3002<\/p>\n

MINVALUE\u5b9a\u4e49\u5e8f\u5217\u751f\u6210\u5668\u80fd\u4ea7\u751f\u7684\u6700\u5c0f\u503c\u3002\u9009\u9879NOMAXVALUE\u662f\u9ed8\u8ba4\u9009\u9879\uff0c\u4ee3\u8868\u6ca1\u6709\u6700\u5c0f\u503c\u5b9a\u4e49\uff0c\u8fd9\u65f6\u5bf9\u4e8e\u9012\u51cf\u5e8f\u5217\uff0c\u7cfb\u7edf\u80fd\u591f\u4ea7\u751f\u7684\u6700\u5c0f\u503c\u662f?10\u768426\u6b21\u65b9;\u5bf9\u4e8e\u9012\u589e\u5e8f\u5217\uff0c\u6700\u5c0f\u503c\u662f1\u3002<\/p>\n

CYCLE\u548cNOCYCLE \u8868\u793a\u5f53\u5e8f\u5217\u751f\u6210\u5668\u7684\u503c\u8fbe\u5230\u9650\u5236\u503c\u540e\u662f\u5426\u5faa\u73af\u3002CYCLE\u4ee3\u8868\u5faa\u73af\uff0cNOCYCLE\u4ee3\u8868\u4e0d\u5faa\u73af\u3002\u5982\u679c\u5faa\u73af\uff0c\u5219\u5f53\u9012\u589e\u5e8f\u5217\u8fbe\u5230\u6700\u5927\u503c\u65f6\uff0c\u5faa\u73af\u5230\u6700\u5c0f\u503c;\u5bf9\u4e8e\u9012\u51cf\u5e8f\u5217\u8fbe\u5230\u6700\u5c0f\u503c\u65f6\uff0c\u5faa\u73af\u5230\u6700\u5927\u503c\u3002\u5982\u679c\u4e0d\u5faa\u73af\uff0c\u8fbe\u5230\u9650\u5236\u503c\u540e\uff0c\u7ee7\u7eed\u4ea7\u751f\u65b0\u503c\u5c31\u4f1a\u53d1\u751f\u9519\u8bef\u3002<\/p>\n

CACHE(\u7f13\u51b2)\u5b9a\u4e49\u5b58\u653e\u5e8f\u5217\u7684\u5185\u5b58\u5757\u7684\u5927\u5c0f\uff0c\u9ed8\u8ba4\u4e3a20\u3002NOCACHE\u8868\u793a\u4e0d\u5bf9\u5e8f\u5217\u8fdb\u884c\u5185\u5b58\u7f13\u51b2\u3002\u5bf9\u5e8f\u5217\u8fdb\u884c\u5185\u5b58\u7f13\u51b2\uff0c\u53ef\u4ee5\u6539\u5584\u5e8f\u5217\u7684\u6027\u80fd\u3002<\/p>\n

\u5220\u9664\u5e8f\u5217\u7684\u8bed\u6cd5\u662f\uff1a<\/strong><\/p>\n

DROP SEQUENCE \u5e8f\u5217\u540d;<\/p><\/blockquote>\n

\u5220\u9664\u5e8f\u5217\u7684\u4eba\u5e94\u8be5\u662f\u5e8f\u5217\u7684\u521b\u5efa\u8005\u6216\u62e5\u6709DROP ANY SEQUENCE\u7cfb\u7edf\u6743\u9650\u7684\u7528\u6237\u3002\u5e8f\u5217\u4e00\u65e6\u5220\u9664\u5c31\u4e0d\u80fd\u88ab\u5f15\u7528\u4e86\u3002<\/p>\n

\u5e8f\u5217\u7684\u67d0\u4e9b\u90e8\u5206\u4e5f\u53ef\u4ee5\u5728\u4f7f\u7528\u4e2d\u8fdb\u884c\u4fee\u6539\uff0c\u4f46\u4e0d\u80fd\u4fee\u6539SATRT WITH\u9009\u9879\u3002\u5bf9\u5e8f\u5217\u7684\u4fee\u6539\u53ea\u5f71\u54cd\u968f\u540e\u4ea7\u751f\u7684\u5e8f\u53f7\uff0c\u5df2\u7ecf\u4ea7\u751f\u7684\u5e8f\u53f7\u4e0d\u53d8<\/p>\n

\u5e8f\u5217\u7684\u4f7f\u7528<\/strong><\/p>\n

\u5982\u679c\u5df2\u7ecf\u521b\u5efa\u4e86\u5e8f\u5217\uff0c\u600e\u6837\u624d\u80fd\u5f15\u7528\u5e8f\u5217\u5462?\u65b9\u6cd5\u662f\u4f7f\u7528CURRVAL\u548cNEXTVAL\u6765\u5f15\u7528\u5e8f\u5217\u7684\u503c\u3002<\/p>\n

\u5728\u7f16\u53f7\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4ea7\u751f\u95f4\u9699\u7684\u539f\u56e0\u591a\u79cd\u591a\u6837\u3002\u5982\u679c\u4e00\u4e2a\u5b58\u50a8\u8fc7\u7a0b\u4ece\u4e00\u4e2a\u5e8f\u5217\u4e2d\u6311\u9009\u67d0\u4e2a\u6570\u5b57\uff0c\u5b9a\u4e3a\u672c\u5730\u53d8\u91cf\uff0c\u4f46\u662f\u4ece\u6765\u4e0d\u7528\u5b83\uff0c\u8fd9\u4e2a\u6570\u5b57\u5c31\u4e22\u5931\u4e86\u3002\u5b83\u5c06\u4e0d\u80fd\u518d\u8fd4\u56de\u5230\u539f\u5e8f\u5217\u4e2d\uff0c\u7ed3\u679c\u5c31\u9020\u6210\u6570\u503c\u5e8f\u5217\u4e2d\u5b58\u5728\u4e00\u4e2a\u95f4\u9699\u3002\u5173\u7cfb\u578b\u6570\u636e\u5e93\u6a21\u578b\u4e2d\u4e0d\u5fc5\u62c5\u5fc3\u8fd9\u4e00\u70b9\u3002\u4f46\u662f\u6709\u65f6\u5019\u4eba\u4eec\u5728\u610f\u8fd9\u4e00\u70b9\uff0c\u8fd9\u4e9b\u4eba\u60f3\u77e5\u9053\u662f\u54ea\u4e9b\u6570\u5b57\u4e22\u5931\u4e86\u3002<\/p>\n

\u8c03\u7528NEXTVAL\u5c06\u751f\u6210\u5e8f\u5217\u4e2d\u7684\u4e0b\u4e00\u4e2a\u5e8f\u5217\u53f7\uff0c\u8c03\u7528\u65f6\u8981\u6307\u51fa\u5e8f\u5217\u540d\uff0c\u5373\u7528\u4ee5\u4e0b\u65b9\u5f0f\u8c03\u7528:<\/p>\n

\u5e8f\u5217\u540d.NEXTVAL<\/p><\/blockquote>\n

CURRVAL\u7528\u4e8e\u4ea7\u751f\u5e8f\u5217\u7684\u5f53\u524d\u503c\uff0c\u65e0\u8bba\u8c03\u7528\u591a\u5c11\u6b21\u90fd\u4e0d\u4f1a\u4ea7\u751f\u5e8f\u5217\u7684\u4e0b\u4e00\u4e2a\u503c\u3002\u5982\u679c\u5e8f\u5217\u8fd8\u6ca1\u6709\u901a\u8fc7\u8c03\u7528NEXTVAL\u4ea7\u751f\u8fc7\u5e8f\u5217\u7684\u4e0b\u4e00\u4e2a\u503c\uff0c\u5148\u5f15\u7528CURRVAL\u6ca1\u6709\u610f\u4e49\u3002\u8c03\u7528CURRVAL\u7684\u65b9\u6cd5\u540c\u4e0a\uff0c\u8981\u6307\u51fa\u5e8f\u5217\u540d\uff0c\u5373\u7528\u4ee5\u4e0b\u65b9\u5f0f\u8c03\u7528:<\/p>\n

\u00a0\u5e8f\u5217\u540d.CURRVAL.<\/p><\/blockquote>\n

\u4ea7\u751f\u5e8f\u5217\u7684\u503c\u3002<\/p>\n

\u6b65\u9aa41\uff1a\u4ea7\u751f\u5e8f\u5217\u7684\u7b2c\u4e00\u4e2a\u503c\uff1a<\/p>\n

SELECT ABC.NEXTVAL FROM DUAL;<\/p><\/blockquote>\n

\u6267\u884c\u7ed3\u679c\uff1a<\/p>\n

NEXTVAL<\/p>\n

——————<\/p>\n

10<\/p><\/blockquote>\n

\u6b65\u9aa42\uff1a\u4ea7\u751f\u5e8f\u5217\u7684\u4e0b\u4e00\u4e2a\u503c\uff1a<\/p>\n

SELECT ABC.NEXTVAL FROM DUAL;<\/p><\/blockquote>\n

\u6267\u884c\u7ed3\u679c\uff1a<\/p>\n

NEXTVAL<\/p>\n

——————-<\/p>\n

11<\/p><\/blockquote>\n

\u4ea7\u751f\u5e8f\u5217\u7684\u5f53\u524d\u503c\uff1a<\/p>\n

SELECT ABC.CURRVAL FROM DUAL;<\/p><\/blockquote>\n

\u6267\u884c\u7ed3\u679c\uff1a<\/p>\n

CURRVAL<\/p>\n

——————–<\/p>\n

11<\/p><\/blockquote>\n

\u8bf4\u660e\uff1a\u7b2c\u4e00\u6b21\u8c03\u7528NEXTVAL\u4ea7\u751f\u5e8f\u5217\u7684\u521d\u59cb\u503c\uff0c\u6839\u636e\u5b9a\u4e49\u77e5\u9053\u521d\u59cb\u503c\u4e3a10\u3002\u7b2c\u4e8c\u6b21\u8c03\u7528\u4ea7\u751f11\uff0c\u56e0\u4e3a\u5e8f\u5217\u7684\u6b65\u957f\u4e3a1\u3002\u8c03\u7528CURRVAL\uff0c\u663e\u793a\u5f53\u524d\u503c11\uff0c\u4e0d\u4ea7\u751f\u65b0\u503c\u3002Oracle\u7684\u89e3\u6790\u51fd\u6570\u4e3a\u68c0\u67e5\u95f4\u9699\u63d0\u4f9b\u4e86\u4e00\u79cd\u8981\u5feb\u6377\u5f97\u591a\u7684\u65b9\u6cd5\u3002\u5b83\u4eec\u4f7f\u4f60\u5728\u4f7f\u7528\u5b8c\u6574\u7684\u3001\u9762\u5411\u96c6\u5408\u7684SQL\u5904\u7406\u7684\u540c\u65f6\uff0c\u4ecd\u7136\u80fd\u591f\u770b\u5230\u4e0b\u4e00\u4e2a\u884c(LEAD)\u6216\u8005\u524d\u4e00\u884c(LAG)\u7684\u6570\u503c\u3002<\/p>\n

Oracle\u5b9e\u73b0\u81ea\u589e\u5b57\u6bb5<\/strong><\/p>\n

Oracle\u81ea\u589e\u5b57\u6bb5\u8981\u7ed3\u5408\u5e8f\u5217\u5b9e\u73b0\uff0c\u9996\u5148\u8981\u4e3a\u8868\u521b\u5efa\u4e00\u4e2a\u5e8f\u5217\u3002<\/p>\n

Oracle\u6709\u4e24\u79cd\u65b9\u6cd5\u5b9e\u73b0\u81ea\u589e\u5b57\u6bb5\uff1a<\/p>\n

    \n
  1. \u5e8f\u5217+\u89e6\u53d1\u5668\u5b9e\u73b0\u81ea\u589e\uff0c\u63d2\u5165\u8bed\u53e5\u4e0d\u9700\u8981\u7ba1\u81ea\u589e\u5b57\u6bb5
    \n\u521b\u5efa\u89e6\u53d1\u5668\uff1a
    \ncreate or replace trigger trg_atable before insert on atable for each row begin select seq_atable.nextval into :new.id from dual; end;
    \n\u63d2\u5165\u6570\u636e\uff1ainsert into atable(a) values(‘test’);<\/li>\n
  2. \u4ec5\u4f7f\u7528\u5e8f\u5217\uff0c\u9700\u8981\u5728\u63d2\u5165\u6570\u636e\u65f6\uff0c\u81ea\u589e\u5b57\u6bb5\u63d2\u5165\u5e8f\u5217\u4e0b\u4e00\u4e2a\u503c\u5982\uff1ainsert into atable(id,a) values(seq_atable.nextval,’test’);<\/li>\n<\/ol>\n

    \u4e00\u65e6\u5b9a\u4e49\u4e86emp_sequence\uff0c\u4f60\u5c31\u53ef\u4ee5\u7528CURRVAL\uff0cNEXTVAL<\/p>\n

    CURRVAL=\u8fd4\u56desequence\u7684\u5f53\u524d\u503c<\/p>\n

    NEXTVAL=\u589e\u52a0sequence\u7684\u503c\uff0c\u7136\u540e\u8fd4\u56desequence\u503c<\/p><\/blockquote>\n

    \u53ef\u4ee5\u4f7f\u7528sequence\u7684\u5730\u65b9\uff1a<\/p>\n

    – \u4e0d\u5305\u542b\u5b50\u67e5\u8be2\u3001snapshot\u3001VIEW\u7684 SELECT \u8bed\u53e5<\/p>\n

    – INSERT\u8bed\u53e5\u7684\u5b50\u67e5\u8be2\u4e2d<\/p>\n

    – INSERT\u8bed\u53e5\u7684VALUES\u4e2d<\/p>\n

    – UPDATE \u7684 SET\u4e2d<\/p><\/blockquote>\n

    \u9700\u8981\u6ce8\u610f\u7684\u662f\uff1a<\/strong><\/p>\n

    \u7b2c\u4e00\u6b21NEXTVAL\u8fd4\u56de\u7684\u662f\u521d\u59cb\u503c\uff1b\u968f\u540e\u7684NEXTVAL\u4f1a\u81ea\u52a8\u589e\u52a0\u4f60\u5b9a\u4e49\u7684INCREMENT BY\u503c\uff0c\u7136\u540e\u8fd4\u56de\u589e\u52a0\u540e\u7684\u503c\u3002CURRVAL \u603b\u662f\u8fd4\u56de\u5f53\u524dsequence\u7684\u503c\uff0c\u4f46\u662f\u5728\u7b2c\u4e00\u6b21NEXTVAL\u521d\u59cb\u5316\u4e4b\u540e\u624d\u80fd\u4f7f\u7528CURRVAL\uff0c\u5426\u5219\u4f1a\u51fa\u9519\u3002<\/p>\n

    \u4e00\u6b21NEXTVAL\u4f1a\u589e\u52a0\u4e00\u6b21sequence\u7684\u503c\uff0c\u6240\u4ee5\u5982\u679c\u4f60\u5728\u540c\u4e00\u4e2a\u8bed\u53e5\u91cc\u9762\u4f7f\u7528\u591a\u4e2aNEXTVAL\uff0c\u5176\u503c\u5c31\u662f\u4e0d\u4e00\u6837\u7684\u3002<\/p>\n

    \u5982\u679c\u6307\u5b9aCACHE\u503c\uff0coracle\u5c31\u53ef\u4ee5\u9884\u5148\u5728\u5185\u5b58\u91cc\u9762\u653e\u7f6e\u4e00\u4e9bsequence\uff0c\u8fd9\u6837\u5b58\u53d6\u7684\u5feb\u4e9b\u3002cache\u91cc\u9762\u7684\u53d6\u5b8c\u540e\uff0coracle\u81ea\u52a8\u518d\u53d6\u4e00\u7ec4\u5230cache\u3002<\/p>\n

    \u4f7f\u7528cache\u6216\u8bb8\u4f1a\u8df3\u53f7\uff0c \u6bd4\u5982\u6570\u636e\u5e93\u7a81\u7136\u4e0d\u6b63\u5e38down\u6389\uff08shutdown abort),cache\u4e2d\u7684sequence\u5c31\u4f1a\u4e22\u5931. \u6240\u4ee5\u53ef\u4ee5\u5728create sequence\u7684\u65f6\u5019\u7528nocache\u9632\u6b62\u8fd9\u79cd\u60c5\u51b5\u3002<\/p>\n

    \u8fd4\u56de\u521a\u63d2\u5165\u8bb0\u5f55\u7684\u81ea\u589e\u5b57\u6bb5\u503c<\/strong><\/p>\n

    \u4f7f\u7528\u81ea\u589e\u5b57\u6bb5\u7684\u7b2c\u4e8c\u79cd\u65b9\u6cd5\uff0c\u5728\u63d2\u5165\u4e00\u6761\u8bb0\u5f55\u540e\u9a6c\u4e0a\u6267\u884c\u4e00\u4e0b\u4e0b\u9762\u7684\u8bed\u53e5\u5373\u8fd4\u56de\u5f53\u524d\u63d2\u5165\u6570\u636e\u7684ID\u3002<\/p>\n

    $query=”select seq_atable.currval from dual”;<\/p><\/blockquote>\n

    seq_atable.currval \u7684\u503c\u53ea\u6709\u5728\u540c\u4e00\u6b21\u4f1a\u8bdd\u4e2d\uff0c\u53d1\u751fseq_atable.nextval\u540e\u6709\u6548\uff1a\uff09 \u6240\u4ee5\u4e0d\u4f1a\u5b58\u5728\u53d6\u9519\u503c\u7684\u95ee\u9898\u3002<\/em>
    \n\u53c2\u8003\u8d44\u6599\uff1a<\/strong>
    \nhttp:\/\/docs.oracle.com\/cd\/B13789_01\/server.101\/b10759\/statements_6014.htm<\/a>
    \nhttp:\/\/database.51cto.com\/art\/200810\/93620.htm<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

    \u5e8f\u5217(SEQUENCE)\u662f\u5e8f\u5217\u53f7\u751f\u6210\u5668\uff0c\u53ef\u4ee5\u4e3a\u8868\u4e2d\u7684\u884c\u81ea\u52a8\u751f\u6210\u5e8f\u5217\u53f7\uff0c\u4ea7\u751f\u4e00\u7ec4\u7b49\u95f4\u9694\u7684\u6570\u503c(\u7c7b\u578b\u4e3a\u6570\u5b57)\u3002\u5176\u4e3b […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[57,58],"_links":{"self":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1452"}],"collection":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/comments?post=1452"}],"version-history":[{"count":2,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1452\/revisions"}],"predecessor-version":[{"id":1454,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1452\/revisions\/1454"}],"wp:attachment":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/media?parent=1452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/categories?post=1452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/tags?post=1452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}