{"id":2244,"date":"2019-06-21T02:34:45","date_gmt":"2019-06-21T09:34:45","guid":{"rendered":"https:\/\/oracletutorial.com\/?page_id=2244"},"modified":"2025-05-03T15:34:07","modified_gmt":"2025-05-03T22:34:07","slug":"oracle-create-sequence","status":"publish","type":"page","link":"https:\/\/www.oracletutorial.com\/oracle-sequence\/oracle-create-sequence\/","title":{"rendered":"Oracle CREATE SEQUENCE"},"content":{"rendered":"\n<p><strong>Summary<\/strong>: in this tutorial, you will learn how to use the Oracle <code>CREATE SEQUENCE<\/code> statement to create a new sequence in Oracle.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='introduction-to-oracle-create-sequence-statement'>Introduction to Oracle CREATE SEQUENCE statement <a href=\"#introduction-to-oracle-create-sequence-statement\" class=\"anchor\" id=\"introduction-to-oracle-create-sequence-statement\" title=\"Anchor for Introduction to Oracle CREATE SEQUENCE statement\">#<\/a><\/h2>\n\n\n\n<p>The <code>CREATE SEQUENCE<\/code> statement allows you to create a new sequence in the database.<\/p>\n\n\n\n<p>Here is the basic syntax of the <code>CREATE SEQUENCE<\/code> statement:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">SEQUENCE<\/span> schema_name.sequence_name\n&#91;<span class=\"hljs-keyword\">INCREMENT<\/span> <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-built_in\">interval<\/span>]\n&#91;<span class=\"hljs-keyword\">START<\/span> <span class=\"hljs-keyword\">WITH<\/span> first_number]\n&#91;MAXVALUE max_value | <span class=\"hljs-keyword\">NOMAXVALUE<\/span>]\n&#91;<span class=\"hljs-keyword\">MINVALUE<\/span> min_value | <span class=\"hljs-keyword\">NOMINVALUE<\/span>]\n&#91;<span class=\"hljs-keyword\">CYCLE<\/span> | <span class=\"hljs-keyword\">NOCYCLE<\/span>]\n&#91;<span class=\"hljs-keyword\">CACHE<\/span> cache_size | NOCACHE]\n&#91;<span class=\"hljs-keyword\">ORDER<\/span> | <span class=\"hljs-keyword\">NOORDER<\/span>];\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h3 class=\"wp-block-heading\" id='create-sequence'>CREATE SEQUENCE <a href=\"#create-sequence\" class=\"anchor\" id=\"create-sequence\" title=\"Anchor for CREATE SEQUENCE\">#<\/a><\/h3>\n\n\n\n<p>Specify the name of the sequence after the <code>CREATE SEQUENCE<\/code> keywords. If you want to create a sequence in a specific schema, you can specify the schema name in along with the sequence name.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='increment-by'>INCREMENT BY <a href=\"#increment-by\" class=\"anchor\" id=\"increment-by\" title=\"Anchor for INCREMENT BY\">#<\/a><\/h3>\n\n\n\n<p>Specify the <code>interval<\/code> between sequence numbers after the <code>INCREMENT BY<\/code> keyword.<\/p>\n\n\n\n<p>The <code>interval<\/code> can have less than 28 digits. It also must be less than <code>MAXVALUE - MINVALUE<\/code>.<\/p>\n\n\n\n<p>If the <code>interval<\/code> is positive, the sequence is ascending e.g., 1,2,3,&#8230;<\/p>\n\n\n\n<p>If the <code>interval<\/code> is negative, the sequence is descending e.g., -1, -2, -3 &#8230;<\/p>\n\n\n\n<p>The default value of the <code>interval<\/code> is 1.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='start-with'>START WITH <a href=\"#start-with\" class=\"anchor\" id=\"start-with\" title=\"Anchor for START WITH\">#<\/a><\/h3>\n\n\n\n<p>Specify the first number in the sequence.<\/p>\n\n\n\n<p>The default value of the first number is the minimum value of the sequence for an ascending sequence and the maximum value of the sequence for a descending sequence.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='maxvalue'>MAXVALUE <a href=\"#maxvalue\" class=\"anchor\" id=\"maxvalue\" title=\"Anchor for MAXVALUE\">#<\/a><\/h3>\n\n\n\n<p>Specify the maximum value of the sequence.<\/p>\n\n\n\n<p>The <code>max_value<\/code> must be equal to or greater than <code>first_number<\/code> specify after the <code>START WITH<\/code> keywords.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='nomaxvalue'>NOMAXVALUE <a href=\"#nomaxvalue\" class=\"anchor\" id=\"nomaxvalue\" title=\"Anchor for NOMAXVALUE\">#<\/a><\/h3>\n\n\n\n<p>Use <code>NOMAXVALUE<\/code> to denote a maximum value of 10^27 for an ascending sequence or -1 for a descending sequence. Oracle uses this option as the default.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='minvalue'>MINVALUE <a href=\"#minvalue\" class=\"anchor\" id=\"minvalue\" title=\"Anchor for MINVALUE\">#<\/a><\/h3>\n\n\n\n<p>Specify the minimum value of the sequence.<\/p>\n\n\n\n<p>The <code>min_value<\/code> must be less than or equal to the <code>first_number<\/code> and must be less than <code>max_value<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='nominvalue'>NOMINVALUE <a href=\"#nominvalue\" class=\"anchor\" id=\"nominvalue\" title=\"Anchor for NOMINVALUE\">#<\/a><\/h3>\n\n\n\n<p>Use <code>NOMINVALUE<\/code> to indicate a minimum value of 1 for an ascending sequence or -10^26 for a descending sequence. This is the default.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='cycle'>CYCLE <a href=\"#cycle\" class=\"anchor\" id=\"cycle\" title=\"Anchor for CYCLE\">#<\/a><\/h3>\n\n\n\n<p>Use <code>CYCLE<\/code> to allow the sequence to generate value after it reaches the limit, min value for a descending sequence, and max value for an ascending sequence.<\/p>\n\n\n\n<p>When an ascending sequence reaches its maximum value, it generates the minimum value.<\/p>\n\n\n\n<p>On the other hand, when a descending sequence reaches its minimum value, it generates the maximum value.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='nocycle'>NOCYCLE <a href=\"#nocycle\" class=\"anchor\" id=\"nocycle\" title=\"Anchor for NOCYCLE\">#<\/a><\/h3>\n\n\n\n<p>Use <code>NOCYCLE<\/code> if you want the sequence to stop generating the next value when it reaches its limit. This is the default.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='cache'>CACHE <a href=\"#cache\" class=\"anchor\" id=\"cache\" title=\"Anchor for CACHE\">#<\/a><\/h3>\n\n\n\n<p>Specify the number of sequence values that Oracle will preallocate and keep in the memory for faster access.<\/p>\n\n\n\n<p>The minimum of the cache size is 2. The maximum value of the cache size is based on this formula:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\">(CEIL (MAXVALUE - MINVALUE)) \/ ABS (INCREMENT)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>In case of a system failure event, you will lose all cached sequence values that have not been used in committed SQL statements.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='order'>ORDER <a href=\"#order\" class=\"anchor\" id=\"order\" title=\"Anchor for ORDER\">#<\/a><\/h3>\n\n\n\n<p>Use <code>ORDER<\/code> to ensure that Oracle will generate the sequence numbers in order of request.<\/p>\n\n\n\n<p>This option is useful if you are using Oracle Real Application Clusters. When you are using exclusive mode, then Oracle will always generate sequence numbers in order.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='noorder'>NOORDER <a href=\"#noorder\" class=\"anchor\" id=\"noorder\" title=\"Anchor for NOORDER\">#<\/a><\/h3>\n\n\n\n<p>Use <code>NOORDER<\/code> if you do not want to ensure Oracle generates sequence numbers in order of request. This option is the default.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='oracle-create-sequence-statement-examples'>Oracle CREATE SEQUENCE statement examples <a href=\"#oracle-create-sequence-statement-examples\" class=\"anchor\" id=\"oracle-create-sequence-statement-examples\" title=\"Anchor for Oracle &lt;code&gt;CREATE SEQUENCE&lt;\/code&gt; statement examples\">#<\/a><\/h2>\n\n\n\n<p>Let&#8217;s take some examples of using sequences.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='basic-oracle-sequence-example'>Basic Oracle Sequence example <a href=\"#basic-oracle-sequence-example\" class=\"anchor\" id=\"basic-oracle-sequence-example\" title=\"Anchor for Basic Oracle Sequence example\">#<\/a><\/h3>\n\n\n\n<p>The following statement creates an ascending sequence called <code>id_seq<\/code>, starting from 10, incrementing by 10, minimum value 10, maximum value 100. The sequence returns 10 once it reaches 100 because of the <code>CYCLE<\/code> option.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">SEQUENCE<\/span> id_seq\n    <span class=\"hljs-keyword\">INCREMENT<\/span> <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-number\">10<\/span>\n    <span class=\"hljs-keyword\">START<\/span> <span class=\"hljs-keyword\">WITH<\/span> <span class=\"hljs-number\">10<\/span>\n    <span class=\"hljs-keyword\">MINVALUE<\/span> <span class=\"hljs-number\">10<\/span>\n    MAXVALUE <span class=\"hljs-number\">100<\/span>\n    <span class=\"hljs-keyword\">CYCLE<\/span>\n    <span class=\"hljs-keyword\">CACHE<\/span> <span class=\"hljs-number\">2<\/span>;\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>To get the next value of the sequence, you use the <code>NEXTVAL<\/code> pseudo-column:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SELECT<\/span> \n    id_seq.NEXTVAL \n<span class=\"hljs-keyword\">FROM<\/span> \n    dual;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Here is the output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\">    NEXTVAL\n<span class=\"hljs-comment\">----------<\/span>\n        10        <\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>To get the current value of the sequence, you use the <code>CURRVAL<\/code> pseudo-column:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SELECT<\/span> \n    id_seq.CURRVAL \n<span class=\"hljs-keyword\">FROM<\/span> \n    dual;\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>The current value is 10:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\">    CURRVAL\n<span class=\"hljs-comment\">----------<\/span>\n        10\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>This <code>SELECT<\/code> statement uses the <code>id_seq.NEXTVAL<\/code> value repeatedly:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SELECT<\/span> \n    id_seq.NEXTVAL \n<span class=\"hljs-keyword\">FROM<\/span> \n    dual\n<span class=\"hljs-keyword\">CONNECT<\/span> <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-keyword\">level<\/span> &lt;= <span class=\"hljs-number\">9<\/span>;\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Here is the output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-9\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\">    NEXTVAL\n<span class=\"hljs-comment\">----------<\/span>\n        20\n        30\n        40\n        50\n        60\n        70\n        80\n        90\n    100\n\n9 rows selected \n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-9\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Because we set the <code>CYCLE<\/code> option for the <code>id_seq<\/code> sequence, the next value of the <code>id_seq<\/code> will be 10:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-10\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SELECT<\/span> id_seq.NEXTVAL <span class=\"hljs-keyword\">FROM<\/span> dual;\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-10\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Here is the output:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-11\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\">    NEXTVAL\n<span class=\"hljs-comment\">----------<\/span>\n        10\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-11\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h3 class=\"wp-block-heading\" id='using-a-sequence-in-a-table-column-example'>Using a sequence in a table column example <a href=\"#using-a-sequence-in-a-table-column-example\" class=\"anchor\" id=\"using-a-sequence-in-a-table-column-example\" title=\"Anchor for Using a sequence in a table column example\">#<\/a><\/h3>\n\n\n\n<p>Prior to Oracle 12c, you could associate a sequence indirectly with a table column only at the insert time. See the following example.<\/p>\n\n\n\n<p>First, <a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-create-table\/\">create a new table<\/a> called <code>tasks<\/code>:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-12\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> tasks(\n    <span class=\"hljs-keyword\">id<\/span> <span class=\"hljs-built_in\">NUMBER<\/span> PRIMARY <span class=\"hljs-keyword\">KEY<\/span>,\n    title <span class=\"hljs-built_in\">VARCHAR2<\/span>(<span class=\"hljs-number\">255<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>\n);<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-12\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Second, create a sequence for the <code>id<\/code> column of the <code>tasks<\/code> table:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-13\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">SEQUENCE<\/span> task_id_seq;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-13\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Third, <a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-insert\/\">insert<\/a> data into the <code>tasks<\/code> table:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-14\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">INSERT<\/span> <span class=\"hljs-keyword\">INTO<\/span> tasks(<span class=\"hljs-keyword\">id<\/span>, title)\n<span class=\"hljs-keyword\">VALUES<\/span>(task_id_seq.NEXTVAL, <span class=\"hljs-string\">'Create Sequence in Oracle'<\/span>);\n\n<span class=\"hljs-keyword\">INSERT<\/span> <span class=\"hljs-keyword\">INTO<\/span> tasks(<span class=\"hljs-keyword\">id<\/span>, title)\n<span class=\"hljs-keyword\">VALUES<\/span>(task_id_seq.NEXTVAL, <span class=\"hljs-string\">'Examine Sequence Values'<\/span>);<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-14\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Finally, <a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-select\/\">query<\/a> data from the <code>tasks<\/code> table:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-15\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SELECT<\/span>  \n    <span class=\"hljs-keyword\">id<\/span>, title\n<span class=\"hljs-keyword\">FROM<\/span>\n    tasks;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-15\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"230\" height=\"61\" src=\"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2019\/06\/Oracle-Create-Sequence-example.png\" alt=\"Oracle Create Sequence example\" class=\"wp-image-2246\"\/><\/figure>\n\n\n\n<p>In this example, the <code>tasks<\/code> table has no direct association with the <code>task_id_seq<\/code> sequence.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='using-the-sequence-via-the-identity-column-example'>Using the sequence via the identity column example <a href=\"#using-the-sequence-via-the-identity-column-example\" class=\"anchor\" id=\"using-the-sequence-via-the-identity-column-example\" title=\"Anchor for Using the sequence via the identity column example\">#<\/a><\/h3>\n\n\n\n<p>From Oracle 12c, you can associate a sequence with a table column via the <a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-identity-column\/\">identity column<\/a>.<\/p>\n\n\n\n<p>First, <a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-drop-table\/\">drop<\/a> the <code>tasks<\/code> table:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-16\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">DROP<\/span> <span class=\"hljs-keyword\">TABLE<\/span> tasks;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-16\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Second, recreate the <code>tasks<\/code> table using the identity column for the <code>id<\/code> column:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-17\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> tasks(\n    <span class=\"hljs-keyword\">id<\/span> <span class=\"hljs-built_in\">NUMBER<\/span> <span class=\"hljs-keyword\">GENERATED<\/span> <span class=\"hljs-keyword\">ALWAYS<\/span> <span class=\"hljs-keyword\">AS<\/span> <span class=\"hljs-keyword\">IDENTITY<\/span> PRIMARY <span class=\"hljs-keyword\">KEY<\/span>,\n    title <span class=\"hljs-built_in\">VARCHAR2<\/span>(<span class=\"hljs-number\">255<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>\n);\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-17\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Behind the scenes, Oracle creates a sequence that is associated with the <code>id<\/code> column of the <code>tasks<\/code> table.<\/p>\n\n\n\n<p>Because Oracle generated the sequence automatically for the <code>id<\/code> column, in your Oracle instance, the name of the sequence may be different.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"688\" height=\"58\" src=\"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2019\/06\/Oracle-Create-Sequence-identity-column.png\" alt=\"Oracle Create Sequence - identity column\" class=\"wp-image-2245\" srcset=\"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2019\/06\/Oracle-Create-Sequence-identity-column.png 688w, https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2019\/06\/Oracle-Create-Sequence-identity-column-300x25.png 300w\" sizes=\"auto, (max-width: 688px) 100vw, 688px\" \/><\/figure>\n\n\n\n<p>Oracle uses the <code>sys.idnseq$<\/code> to store the link between the table and the sequence.<\/p>\n\n\n\n<p>This query returns the association of the <code>tasks<\/code> table and <code>ISEQ$$_74366<\/code> sequence:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-18\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SELECT<\/span> \n    a.name <span class=\"hljs-keyword\">AS<\/span> table_name,\n    b.name <span class=\"hljs-keyword\">AS<\/span> sequence_name\n<span class=\"hljs-keyword\">FROM<\/span>   \n    sys.idnseq$ c\n    <span class=\"hljs-keyword\">JOIN<\/span> obj$ a <span class=\"hljs-keyword\">ON<\/span> c.obj<span class=\"hljs-comment\"># = a.obj#<\/span>\n    <span class=\"hljs-keyword\">JOIN<\/span> obj$ b <span class=\"hljs-keyword\">ON<\/span> c.seqobj<span class=\"hljs-comment\"># = b.obj#<\/span>\n<span class=\"hljs-keyword\">WHERE<\/span> \n    a.name = <span class=\"hljs-string\">'TASKS'<\/span>;  <\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-18\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Third, insert some rows into the <code>tasks<\/code> table:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-19\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">INSERT<\/span> <span class=\"hljs-keyword\">INTO<\/span> tasks(title)\n<span class=\"hljs-keyword\">VALUES<\/span>(<span class=\"hljs-string\">'Learn Oracle identity column in 12c'<\/span>);\n\n<span class=\"hljs-keyword\">INSERT<\/span> <span class=\"hljs-keyword\">INTO<\/span> tasks(title)\n<span class=\"hljs-keyword\">VALUES<\/span>(<span class=\"hljs-string\">'Verify contents of the tasks table'<\/span>);<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-19\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Finally, query data from the <code>tasks<\/code> table:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-20\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SELECT<\/span>\n    <span class=\"hljs-keyword\">id<\/span>, title\n<span class=\"hljs-keyword\">FROM<\/span>\n    tasks;\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-20\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"282\" height=\"61\" src=\"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2019\/06\/Oracle-Create-Sequence-oracle-identity-column-example.png\" alt=\"Oracle Create Sequence - oracle identity column example\" class=\"wp-image-2247\"\/><\/figure>\n\n\n\n<p>In this tutorial, you have learned how to use the Oracle <code>CREATE SEQUENCE<\/code> statement to create a new sequence in the database.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='quiz'>Quiz <a href=\"#quiz\" class=\"anchor\" id=\"quiz\" title=\"Anchor for Quiz\">#<\/a><\/h2>\n\n\n\n<iframe loading=\"lazy\"\n  name=\"quiz\"\n  src=\"\/quiz\/?quiz=create-sequence\"\n  height=\"700\"\n  width=\"600\"\n  class=\"iframe\"\n><\/iframe>\n\n\n\n<p><\/p>\n<div class=\"helpful-block-content\" data-title=\"\">\n\t<header>\n\t\t<div class=\"wth-question\">Was this tutorial helpful?<\/div>\n\t\t<div class=\"wth-thumbs\">\n\t\t\t<button\n\t\t\t\tdata-post=\"2244\"\n\t\t\t\tdata-post-url=\"https:\/\/www.oracletutorial.com\/oracle-sequence\/oracle-create-sequence\/\"\n\t\t\t\tdata-post-title=\"Oracle CREATE SEQUENCE\"\n\t\t\t\tdata-response=\"1\"\n\t\t\t\tclass=\"wth-btn-rounded wth-yes-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tclass=\"feather feather-thumbs-up block w-full h-full\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> Yes <\/span>\n\t\t\t<\/button>\n\n\t\t\t<button\n\t\t\t\tdata-response=\"0\"\n\t\t\t\tdata-post=\"2244\"\n\t\t\t\tdata-post-url=\"https:\/\/www.oracletutorial.com\/oracle-sequence\/oracle-create-sequence\/\"\n\t\t\t\tdata-post-title=\"Oracle CREATE SEQUENCE\"\n\t\t\t\tclass=\"wth-btn-rounded wth-no-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> No <\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t<\/header>\n\n\t<div class=\"wth-form hidden\">\n\t\t<div class=\"wth-form-wrapper\">\n\t\t\t<div class=\"wth-title\"><\/div>\n\t\t\t\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\n\t\t\t<button class=\"btn btn-primary wth-btn-submit\">Send<\/button>\n\t\t\t<button class=\"btn wth-btn-cancel\">Cancel<\/button>\n\t\t\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to use the Oracle CREATE SEQUENCE statement to create a new sequence in Oracle.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2238,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2244","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Oracle CREATE SEQUENCE Statement<\/title>\n<meta name=\"description\" content=\"In this tutorial, you will learn how to use the Oracle CREATE SEQUENCE statement to create a new sequence in Oracle.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.oracletutorial.com\/oracle-sequence\/oracle-create-sequence\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Oracle CREATE SEQUENCE Statement\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, you will learn how to use the Oracle CREATE SEQUENCE statement to create a new sequence in Oracle.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.oracletutorial.com\/oracle-sequence\/oracle-create-sequence\/\" \/>\n<meta property=\"og:site_name\" content=\"Oracle Tutorial\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-03T22:34:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2019\/06\/Oracle-Create-Sequence-example.png\" \/>\n\t<meta property=\"og:image:width\" content=\"230\" \/>\n\t<meta property=\"og:image:height\" content=\"61\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/oracle-sequence\\\/oracle-create-sequence\\\/\",\"url\":\"https:\\\/\\\/www.oracletutorial.com\\\/oracle-sequence\\\/oracle-create-sequence\\\/\",\"name\":\"Oracle CREATE SEQUENCE Statement\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/oracle-sequence\\\/oracle-create-sequence\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/oracle-sequence\\\/oracle-create-sequence\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.oracletutorial.com\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/Oracle-Create-Sequence-example.png\",\"datePublished\":\"2019-06-21T09:34:45+00:00\",\"dateModified\":\"2025-05-03T22:34:07+00:00\",\"description\":\"In this tutorial, you will learn how to use the Oracle CREATE SEQUENCE statement to create a new sequence in Oracle.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/oracle-sequence\\\/oracle-create-sequence\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.oracletutorial.com\\\/oracle-sequence\\\/oracle-create-sequence\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/oracle-sequence\\\/oracle-create-sequence\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.oracletutorial.com\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/Oracle-Create-Sequence-example.png\",\"contentUrl\":\"https:\\\/\\\/www.oracletutorial.com\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/Oracle-Create-Sequence-example.png\",\"width\":230,\"height\":61,\"caption\":\"Oracle Create Sequence example\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/oracle-sequence\\\/oracle-create-sequence\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.oracletutorial.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Oracle Sequence\",\"item\":\"https:\\\/\\\/www.oracletutorial.com\\\/oracle-sequence\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Oracle CREATE SEQUENCE\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/#website\",\"url\":\"https:\\\/\\\/www.oracletutorial.com\\\/\",\"name\":\"Oracle Tutorial\",\"description\":\"Oracle Tutorial\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.oracletutorial.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Oracle CREATE SEQUENCE Statement","description":"In this tutorial, you will learn how to use the Oracle CREATE SEQUENCE statement to create a new sequence in Oracle.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.oracletutorial.com\/oracle-sequence\/oracle-create-sequence\/","og_locale":"en_US","og_type":"article","og_title":"Oracle CREATE SEQUENCE Statement","og_description":"In this tutorial, you will learn how to use the Oracle CREATE SEQUENCE statement to create a new sequence in Oracle.","og_url":"https:\/\/www.oracletutorial.com\/oracle-sequence\/oracle-create-sequence\/","og_site_name":"Oracle Tutorial","article_modified_time":"2025-05-03T22:34:07+00:00","og_image":[{"width":230,"height":61,"url":"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2019\/06\/Oracle-Create-Sequence-example.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.oracletutorial.com\/oracle-sequence\/oracle-create-sequence\/","url":"https:\/\/www.oracletutorial.com\/oracle-sequence\/oracle-create-sequence\/","name":"Oracle CREATE SEQUENCE Statement","isPartOf":{"@id":"https:\/\/www.oracletutorial.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.oracletutorial.com\/oracle-sequence\/oracle-create-sequence\/#primaryimage"},"image":{"@id":"https:\/\/www.oracletutorial.com\/oracle-sequence\/oracle-create-sequence\/#primaryimage"},"thumbnailUrl":"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2019\/06\/Oracle-Create-Sequence-example.png","datePublished":"2019-06-21T09:34:45+00:00","dateModified":"2025-05-03T22:34:07+00:00","description":"In this tutorial, you will learn how to use the Oracle CREATE SEQUENCE statement to create a new sequence in Oracle.","breadcrumb":{"@id":"https:\/\/www.oracletutorial.com\/oracle-sequence\/oracle-create-sequence\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.oracletutorial.com\/oracle-sequence\/oracle-create-sequence\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.oracletutorial.com\/oracle-sequence\/oracle-create-sequence\/#primaryimage","url":"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2019\/06\/Oracle-Create-Sequence-example.png","contentUrl":"https:\/\/www.oracletutorial.com\/wp-content\/uploads\/2019\/06\/Oracle-Create-Sequence-example.png","width":230,"height":61,"caption":"Oracle Create Sequence example"},{"@type":"BreadcrumbList","@id":"https:\/\/www.oracletutorial.com\/oracle-sequence\/oracle-create-sequence\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.oracletutorial.com\/"},{"@type":"ListItem","position":2,"name":"Oracle Sequence","item":"https:\/\/www.oracletutorial.com\/oracle-sequence\/"},{"@type":"ListItem","position":3,"name":"Oracle CREATE SEQUENCE"}]},{"@type":"WebSite","@id":"https:\/\/www.oracletutorial.com\/#website","url":"https:\/\/www.oracletutorial.com\/","name":"Oracle Tutorial","description":"Oracle Tutorial","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.oracletutorial.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/pages\/2244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/comments?post=2244"}],"version-history":[{"count":0,"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/pages\/2244\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/pages\/2238"}],"wp:attachment":[{"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/media?parent=2244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}