{"id":821,"date":"2017-09-15T16:24:38","date_gmt":"2017-09-15T09:24:38","guid":{"rendered":"https:\/\/oracletutorial.com\/?page_id=821"},"modified":"2025-05-05T19:40:00","modified_gmt":"2025-05-06T02:40:00","slug":"oracle-create-table","status":"publish","type":"page","link":"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-create-table\/","title":{"rendered":"Oracle CREATE TABLE Statement"},"content":{"rendered":"\n<p><strong>Summary<\/strong>: In this tutorial, you will learn how to use the Oracle <code>CREATE TABLE<\/code> statement to create a new table in the Oracle database.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='introduction-to-oracle-create-table-statement'>Introduction to Oracle CREATE TABLE statement <a href=\"#introduction-to-oracle-create-table-statement\" class=\"anchor\" id=\"introduction-to-oracle-create-table-statement\" title=\"Anchor for Introduction to Oracle CREATE TABLE statement\">#<\/a><\/h2>\n\n\n\n<p>In Oracle, a table is a structured collection of related data organized in rows and columns, like a spreadsheet.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Each row represents a record in the table.<\/li>\n\n\n\n<li>Each column represents an attribute of the data.<\/li>\n<\/ul>\n\n\n\n<p>So far, you&#8217;ve learned how to work with various tables in the <a href=\"https:\/\/www.oracletutorial.com\/getting-started\/oracle-sample-database\/\">Oracle sample database<\/a>, such as <code>orders<\/code> and <code>order_items<\/code>.<\/p>\n\n\n\n<p>To create a new table in Oracle Database, you use the <code>CREATE TABLE<\/code> statement.<\/p>\n\n\n\n<p>Here&#8217;s the basic syntax of the <code>CREATE TABLE<\/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\">TABLE<\/span> table_name (\n    column_1 datatype &#91;<span class=\"hljs-keyword\">constraint<\/span>],\n    column_2 datatype &#91;<span class=\"hljs-keyword\">constraint<\/span>],\n    ...\n    table_constraint\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<p>In this syntax:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First, specify the name of the table you want to create after the <code>CREATE TABLE<\/code> keyword.<\/li>\n\n\n\n<li>Second, provide one or more columns. Each column includes the name, <a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-data-types\/\">data type<\/a>, and constraint.<\/li>\n\n\n\n<li>Third, define table constraints like <a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-primary-key\/\">primary key<\/a>, <a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-foreign-key\/\">foreign key<\/a>, <a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-check-constraint\/\">check<\/a>, and <a href=\"https:\/\/www.oracletutorial.com\/oracle-index\/oracle-unique-index\/\">unique.<\/a><\/li>\n<\/ul>\n\n\n\n<p>A column may have one of the following <a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-data-types\/\">data types<\/a>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code><a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-number-data-type\/\">NUMBER<\/a><\/code> &#8211; The column may store numbers like integers and decimals.<\/li>\n\n\n\n<li><code><a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-varchar2\/\">VARCHAR2<\/a><\/code> &#8211; The column can store text of variable length.<\/li>\n\n\n\n<li><code><code><a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-date\/\">DATE<\/a><\/code><\/code> &#8211; The column may store date and time. Note that in Oracle Database, the <code>DATE<\/code> data type includes both date and time.<\/li>\n\n\n\n<li>And many others.<\/li>\n<\/ul>\n\n\n\n<p>Additionally, a column may have rules for validating data values, such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code><a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-not-null\/\">NOT NULL<\/a><\/code> &#8211; The column cannot have NULL.<\/li>\n\n\n\n<li><code><code><a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-unique-constraint\/\">UNIQUE<\/a><\/code><\/code> &#8211; The column cannot have duplicate data.<\/li>\n\n\n\n<li><code>DEFAULT<\/code> &#8211; The column may accept a default value if you don&#8217;t explicitly specify it. For example, <code>created_at<\/code> column defaults to the time when you insert a row into the table.<\/li>\n\n\n\n<li><code><a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-check-constraint\/\">CHECK<\/a><\/code> &#8211; The data in the column must satisfy a Boolean condition.<\/li>\n<\/ul>\n\n\n\n<p>Typically, a table has a primary key that consists of one or more columns. These columns are called primary key columns.<\/p>\n\n\n\n<p>The primary key uniquely identifies each row within the same table. To define a column as a primary key, you use the <code>PRIMARY KEY<\/code> constraint:<\/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\">column_name NUMBER PRIMARY KEY<\/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>A table has one and only one primary key. You&#8217;ll learn about the <a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-primary-key\/\">primary key<\/a> in the following tutorial.<\/p>\n\n\n\n<p><span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">Unlike primary keys, a table can have multiple foreign keys, which we will cover in the <a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-foreign-key\/\" target=\"_blank\" rel=\"noopener\">foreign key tutorial<\/a>.<\/span><\/p>\n\n\n\n<p class=\"note\">Note that you must have the <code>CREATE TABLE<\/code> system privilege to create a new table in your schema and <code>CREATE ANY TABLE<\/code> system privilege to create a new table in another user&#8217;s schema. Additionally, the owner of the new table must have the quota for the <a href=\"https:\/\/www.oracletutorial.com\/oracle-administration\/oracle-tablespace\/\">tablespace<\/a> that contains the new table or <code>UNLIMITED TABLESPACE<\/code> system privilege.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='oracle-create-table-statement-example'>Oracle CREATE TABLE statement example <a href=\"#oracle-create-table-statement-example\" class=\"anchor\" id=\"oracle-create-table-statement-example\" title=\"Anchor for Oracle CREATE TABLE statement example\">#<\/a><\/h2>\n\n\n\n<p>First, connect to the Oracle Database server using SQL*Plus or SQL Developer.<\/p>\n\n\n\n<p>Second, execute the following statement to create a new table:<\/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\">TABLE<\/span> invoices (\n   invoice_no <span class=\"hljs-built_in\">NUMBER<\/span> PRIMARY <span class=\"hljs-keyword\">KEY<\/span>,\n   invoice_date <span class=\"hljs-built_in\">DATE<\/span> <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n   customer_id <span class=\"hljs-built_in\">NUMBER<\/span> <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n   note <span class=\"hljs-built_in\">VARCHAR2<\/span>(<span class=\"hljs-number\">255<\/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>This <code>CREATE TABLE<\/code> statement creates a new table called <code>invoices<\/code> with four columns:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>invoice_no<\/code> column has the type <code>NUMBER<\/code>, meaning that it can store only numbers and cannot store values of other types. The invoice_no column is the primary key denoted by the <code>PRIMARY KEY<\/code>constraint. It means the <code>invoice_no<\/code> column will not have duplicate values.<\/li>\n\n\n\n<li><code>invoice_date<\/code> column has the type <code>DATE<\/code> so it can store date and time. Additionally, the <code>NOT NULL<\/code> constraint ensures the column does not have <code>NULL<\/code>.<\/li>\n\n\n\n<li><code>customer_id<\/code> column has the type <code>NUMBER<\/code> so it can store numbers only. It also has a <code>NOT NULL<\/code> constraint. The customer_id should reference the <code>customer_id<\/code> in the <code>customers<\/code> table via a <a href=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-foreign-key\/\">foreign key<\/a>.<\/li>\n\n\n\n<li><code>note<\/code> column has the <code>VARCHAR2<\/code> type that can store a text string with a maximum length of <code>255<\/code>. Unlike other columns in the invoices table, the <code>note<\/code> column does have <code>NOT NULL<\/code> constraint so it can store <code>NULL<\/code>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id='if-not-exists-option'>IF NOT EXISTS option <a href=\"#if-not-exists-option\" class=\"anchor\" id=\"if-not-exists-option\" title=\"Anchor for IF NOT EXISTS option\">#<\/a><\/h2>\n\n\n\n<p>You&#8217;ll get an error if you attempt to create a new table with the existing name.<\/p>\n\n\n\n<p>For example, if you attempt to create the invoices table again, Oracle Database will issue the following error:<\/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\">ORA-00955: name is already used by an existing object<\/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>To avoid the error, starting in Oracle 23, you can use the <code>IF NOT EXISTS<\/code> clause for the <code>CREATE TABLE<\/code> statement.<\/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\"><span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> <span class=\"hljs-keyword\">IF<\/span> <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-keyword\">EXISTS<\/span> table_name (\n    column_1 datatype &#91;<span class=\"hljs-keyword\">constraint<\/span>],\n    column_2 datatype &#91;<span class=\"hljs-keyword\">constraint<\/span>],\n    ...\n    table_constraint\n );<\/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>The <code>IF NOT EXISTS<\/code> option creates a new table only if it does not exist; otherwise, it will not do anything.<\/p>\n\n\n\n<p>For example, you can execute the <code>CREATE TABLE<\/code> statement that creates the invoices table as many times as you want , with the <code>IF NOT EXISTS<\/code> option:<\/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\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> <span class=\"hljs-keyword\">IF<\/span> <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-keyword\">EXISTS<\/span> invoices (\n   invoice_no <span class=\"hljs-built_in\">NUMBER<\/span> PRIMARY <span class=\"hljs-keyword\">KEY<\/span>,\n   invoice_date <span class=\"hljs-built_in\">DATE<\/span> <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n   customer_id <span class=\"hljs-built_in\">NUMBER<\/span> <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-literal\">NULL<\/span>,\n   note <span class=\"hljs-built_in\">VARCHAR2<\/span>(<span class=\"hljs-number\">255<\/span>)\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<h2 class=\"wp-block-heading\" id='summary'>Summary <a href=\"#summary\" class=\"anchor\" id=\"summary\" title=\"Anchor for Summary\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the <code>CREATE TABLE<\/code> statement to create a new table.<\/li>\n\n\n\n<li>Use the <code>IF NOT EXISTS<\/code> clause to create a new table only if it does not exist.<\/li>\n<\/ul>\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-table\"\n  height=\"700\"\n  width=\"600\"\n  class=\"iframe\"\n><\/iframe>\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=\"821\"\n\t\t\t\tdata-post-url=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-create-table\/\"\n\t\t\t\tdata-post-title=\"Oracle CREATE TABLE Statement\"\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=\"821\"\n\t\t\t\tdata-post-url=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-create-table\/\"\n\t\t\t\tdata-post-title=\"Oracle CREATE TABLE Statement\"\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>This tutorial shows you step by step how to use the Oracle CREATE TABLE statement to create a new table in the Oracle Database.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":386,"menu_order":35,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-821","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 TABLE Statement<\/title>\n<meta name=\"description\" content=\"This tutorial shows you step by step how to use the Oracle CREATE TABLE statement to create a new table in the Oracle Database.\" \/>\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-basics\/oracle-create-table\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Oracle CREATE TABLE Statement\" \/>\n<meta property=\"og:description\" content=\"This tutorial shows you step by step how to use the Oracle CREATE TABLE statement to create a new table in the Oracle Database.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-create-table\/\" \/>\n<meta property=\"og:site_name\" content=\"Oracle Tutorial\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-06T02:40:00+00:00\" \/>\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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/oracle-basics\\\/oracle-create-table\\\/\",\"url\":\"https:\\\/\\\/www.oracletutorial.com\\\/oracle-basics\\\/oracle-create-table\\\/\",\"name\":\"Oracle CREATE TABLE Statement\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/#website\"},\"datePublished\":\"2017-09-15T09:24:38+00:00\",\"dateModified\":\"2025-05-06T02:40:00+00:00\",\"description\":\"This tutorial shows you step by step how to use the Oracle CREATE TABLE statement to create a new table in the Oracle Database.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/oracle-basics\\\/oracle-create-table\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.oracletutorial.com\\\/oracle-basics\\\/oracle-create-table\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.oracletutorial.com\\\/oracle-basics\\\/oracle-create-table\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.oracletutorial.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Oracle Basics\",\"item\":\"https:\\\/\\\/www.oracletutorial.com\\\/oracle-basics\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Oracle CREATE TABLE Statement\"}]},{\"@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 TABLE Statement","description":"This tutorial shows you step by step how to use the Oracle CREATE TABLE statement to create a new table in the Oracle Database.","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-basics\/oracle-create-table\/","og_locale":"en_US","og_type":"article","og_title":"Oracle CREATE TABLE Statement","og_description":"This tutorial shows you step by step how to use the Oracle CREATE TABLE statement to create a new table in the Oracle Database.","og_url":"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-create-table\/","og_site_name":"Oracle Tutorial","article_modified_time":"2025-05-06T02:40:00+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-create-table\/","url":"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-create-table\/","name":"Oracle CREATE TABLE Statement","isPartOf":{"@id":"https:\/\/www.oracletutorial.com\/#website"},"datePublished":"2017-09-15T09:24:38+00:00","dateModified":"2025-05-06T02:40:00+00:00","description":"This tutorial shows you step by step how to use the Oracle CREATE TABLE statement to create a new table in the Oracle Database.","breadcrumb":{"@id":"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-create-table\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-create-table\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.oracletutorial.com\/oracle-basics\/oracle-create-table\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.oracletutorial.com\/"},{"@type":"ListItem","position":2,"name":"Oracle Basics","item":"https:\/\/www.oracletutorial.com\/oracle-basics\/"},{"@type":"ListItem","position":3,"name":"Oracle CREATE TABLE Statement"}]},{"@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\/821","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=821"}],"version-history":[{"count":0,"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/pages\/821\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/pages\/386"}],"wp:attachment":[{"href":"https:\/\/www.oracletutorial.com\/wp-json\/wp\/v2\/media?parent=821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}