{"id":78372,"date":"2019-09-30T11:00:24","date_gmt":"2019-09-30T08:00:24","guid":{"rendered":"http:\/\/examples.javacodegeeks.com\/?p=78372"},"modified":"2019-09-25T15:36:10","modified_gmt":"2019-09-25T12:36:10","slug":"sql-temp-table-example","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/","title":{"rendered":"SQL Temp Table Example"},"content":{"rendered":"<p>Welcome readers, in this tutorial, we will learn how to use the temporary tables in the database.<\/p>\n<h2>1. Introduction<\/h2>\n<p>A <strong>temporary table<\/strong> is a table that,<\/p>\n<ul>\n<li>Is only visible to the current session<\/li>\n<li>Is automatically dropped when the current session is closed<\/li>\n<li>Is permanently not stored in a database; therefore, it is effective for the testing purpose<\/li>\n<li>Is only available and accessible to the client that creates it<\/li>\n<\/ul>\n<p>To start with this tutorial, we are hoping that users at present have their preferred database installed on their machines. For easy usage, I am using MySQL on a Windows operating system. If someone needs to go through the MySQL installation, please watch <a href=\"https:\/\/www.youtube.com\/watch?v=z1t9m7K6cpI\" target=\"_blank\" rel=\"noopener noreferrer\">this<\/a> video.<\/p>\n<h2>2. SQL Temp Table Example<\/h2>\n<p>The following tutorial will illustrate the different approaches for creating a <em>temporary table<\/em> and dropping it.<\/p>\n<h3>2.1 Creating a Temporary Table<\/h3>\n<p>Programmers can use the following script to create a temporary table named &#8211; <code>cashback<\/code> in a database named &#8211; <code>sql_temp_table_example<\/code> and add some sample data to it.<\/p>\n<p><span style=\"text-decoration: underline\"><em>Query 1<\/em><\/span><\/p>\n<div>\n<div id=\"highlighter_462549\" class=\"syntaxhighlighter  sql\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">01<\/div>\n<div class=\"line number2 index1 alt1\">02<\/div>\n<div class=\"line number3 index2 alt2\">03<\/div>\n<div class=\"line number4 index3 alt1\">04<\/div>\n<div class=\"line number5 index4 alt2\">05<\/div>\n<div class=\"line number6 index5 alt1\">06<\/div>\n<div class=\"line number7 index6 alt2\">07<\/div>\n<div class=\"line number8 index7 alt1\">08<\/div>\n<div class=\"line number9 index8 alt2\">09<\/div>\n<div class=\"line number10 index9 alt1\">10<\/div>\n<div class=\"line number11 index10 alt2\">11<\/div>\n<div class=\"line number12 index11 alt1\">12<\/div>\n<div class=\"line number13 index12 alt2\">13<\/div>\n<div class=\"line number14 index13 alt1\">14<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"sql comments\">\/* QUERY 1 = CREATING A TEMPORARY TABLE AND ADDING RECORDS INTO IT. *\/<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"sql keyword\">CREATE<\/code> <code class=\"sql keyword\">TEMPORARY<\/code> <code class=\"sql keyword\">TABLE<\/code> <code class=\"sql plain\">cashback(<\/code><\/div>\n<div class=\"line number3 index2 alt2\"><code class=\"sql spaces\">&nbsp;&nbsp;<\/code><code class=\"sql plain\">id <\/code><code class=\"sql keyword\">INT<\/code> <code class=\"sql plain\">AUTO_INCREMENT, <\/code><\/div>\n<div class=\"line number4 index3 alt1\"><code class=\"sql spaces\">&nbsp;&nbsp;<\/code><code class=\"sql plain\">customer_id <\/code><code class=\"sql keyword\">INT<\/code> <code class=\"sql color1\">NOT<\/code> <code class=\"sql color1\">NULL<\/code><code class=\"sql plain\">, <\/code><\/div>\n<div class=\"line number5 index4 alt2\"><code class=\"sql spaces\">&nbsp;&nbsp;<\/code><code class=\"sql plain\">cashback_amount <\/code><code class=\"sql keyword\">DEC<\/code><code class=\"sql plain\">(50, 2), <\/code><\/div>\n<div class=\"line number6 index5 alt1\"><code class=\"sql spaces\">&nbsp;&nbsp;<\/code><code class=\"sql plain\">allotted_for_order_id <\/code><code class=\"sql keyword\">INT<\/code> <code class=\"sql color1\">NOT<\/code> <code class=\"sql color1\">NULL<\/code><code class=\"sql plain\">, <\/code><\/div>\n<div class=\"line number7 index6 alt2\"><code class=\"sql spaces\">&nbsp;&nbsp;<\/code><code class=\"sql keyword\">primary<\/code> <code class=\"sql keyword\">key<\/code> <code class=\"sql plain\">(id)<\/code><\/div>\n<div class=\"line number8 index7 alt1\"><code class=\"sql plain\">);<\/code><\/div>\n<div class=\"line number9 index8 alt2\">&nbsp;<\/div>\n<div class=\"line number10 index9 alt1\"><code class=\"sql keyword\">INSERT<\/code> <code class=\"sql keyword\">INTO<\/code> <code class=\"sql plain\">cashback (customer_id, cashback_amount, allotted_for_order_id) <\/code><code class=\"sql keyword\">VALUES<\/code> <code class=\"sql plain\">(205, 30.2, 8312);<\/code><\/div>\n<div class=\"line number11 index10 alt2\"><code class=\"sql keyword\">INSERT<\/code> <code class=\"sql keyword\">INTO<\/code> <code class=\"sql plain\">cashback (customer_id, cashback_amount, allotted_for_order_id) <\/code><code class=\"sql keyword\">VALUES<\/code> <code class=\"sql plain\">(907, 130.2, 8474);<\/code><\/div>\n<div class=\"line number12 index11 alt1\"><code class=\"sql keyword\">INSERT<\/code> <code class=\"sql keyword\">INTO<\/code> <code class=\"sql plain\">cashback (customer_id, cashback_amount, allotted_for_order_id) <\/code><code class=\"sql keyword\">VALUES<\/code> <code class=\"sql plain\">(46, 0.2, 3570);<\/code><\/div>\n<div class=\"line number13 index12 alt2\">&nbsp;<\/div>\n<div class=\"line number14 index13 alt1\"><code class=\"sql keyword\">SELECT<\/code> <code class=\"sql plain\">* <\/code><code class=\"sql keyword\">FROM<\/code> <code class=\"sql plain\">cashback;<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>If everything goes well, the <code>cashback<\/code> table will be created, and the data will be displayed.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"606\" height=\"124\" src=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2019\/09\/Temp-table-query-output1.jpg\" alt=\"SQL Temp Table - Temporary table &amp; Displaying data\" class=\"wp-image-78373\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2019\/09\/Temp-table-query-output1.jpg 606w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2019\/09\/Temp-table-query-output1-300x61.jpg 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><figcaption>Fig. 1: Creating a Temporary table &amp; Displaying data<\/figcaption><\/figure>\n<\/div>\n<h3>2.2 Creating a Temporary Table based on Query Example<\/h3>\n<p>Programmers can use the following script to create a temporary table named &#8211; <code>cashback_bkp<\/code> from the SQL <code>SELECT<\/code> query.<\/p>\n<p><span style=\"text-decoration: underline\"><em>Query 2<\/em><\/span><\/p>\n<pre class=\"brush:sql; wrap-lines:false;\">\/* QUERY 2 = CREATING A TEMPORARY COPY OF THE ORIGINAL TABLE AND DISPLAY RESULTS. *\/\nCREATE TEMPORARY TABLE cashback_bkp SELECT * FROM cashback;\n\nSELECT * FROM cashback_bkp;\n<\/pre>\n<p>If everything goes well, the <code>cashback_bkp<\/code> table will be created, and the data will be displayed.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"606\" height=\"124\" src=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2019\/09\/Temp-table-query-output2.jpg\" alt=\"SQL Temp Table - Temporary table from SQL SELECT query\" class=\"wp-image-78374\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2019\/09\/Temp-table-query-output2.jpg 606w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2019\/09\/Temp-table-query-output2-300x61.jpg 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><figcaption>Fig. 2: Creating a Temporary table from SQL SELECT query<\/figcaption><\/figure>\n<\/div>\n<h3>2.3 Dropping a Temporary Table<\/h3>\n<p>Programmers can use the SQL <code>DROP<\/code> command to delete a temporary table.<br \/><span style=\"text-decoration: underline\"><em>Query 3<\/em><\/span><\/p>\n<pre class=\"brush:sql; wrap-lines:false;\">\/* QUERY 3 = DROPPING TEMPORARY TABLE. *\/\nDROP TEMPORARY TABLE cashback;\n<\/pre>\n<p>Make note, to add the <code>TEMPORARY<\/code> keyword. This query only removes a temporary table but not permanent and helps developers to avoid the mistake of dropping a permanent table when the temporary table name is the same as permanent.<\/p>\n<p>That is all for this tutorial and I hope the article served you whatever you were looking for. Happy Learning and do not forget to share!<\/p>\n<h2>3. Conclusion<\/h2>\n<p>In this section, developers learned how to create and drop a temporary table in the database. Developers can download the sample scripts in the <a href=\"#projectDownload\">Downloads<\/a> section.<\/p>\n<h2><a name=\"projectDownload\"><\/a>4. Download the SQL Script<\/h2>\n<p>This was an example of creating\/dropping a <em>temporary table<\/em> in the database.<\/p>\n<div class=\"download\"><strong>Download<\/strong><br \/>You can download the full source code of this example here: <a target=\"_self\" href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2019\/09\/SQL-Temp-Table-Example.zip\" rel=\"noopener noreferrer\"><strong>SQL Temp Table Example<\/strong><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Welcome readers, in this tutorial, we will learn how to use the temporary tables in the database. 1. Introduction A temporary table is a table that, Is only visible to the current session Is automatically dropped when the current session is closed Is permanently not stored in a database; therefore, it is effective for the &hellip;<\/p>\n","protected":false},"author":119,"featured_media":1204,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53],"tags":[647,1055],"class_list":["post-78372","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sql","tag-mysql","tag-sql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SQL Temp Table Example - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Interested to learn more? Then check out our detailed example on SQL Temp Table, which illustrates the different approaches for creating a temp table.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL Temp Table Example - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Interested to learn more? Then check out our detailed example on SQL Temp Table, which illustrates the different approaches for creating a temp table.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Examples Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-30T08:00:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Yatin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yatin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/\"},\"author\":{\"name\":\"Yatin\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/9874407a37b028e8be3276e2b5960d13\"},\"headline\":\"SQL Temp Table Example\",\"datePublished\":\"2019-09-30T08:00:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/\"},\"wordCount\":381,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"keywords\":[\"mysql\",\"sql\"],\"articleSection\":[\"sql\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/\",\"name\":\"SQL Temp Table Example - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"datePublished\":\"2019-09-30T08:00:24+00:00\",\"description\":\"Interested to learn more? Then check out our detailed example on SQL Temp Table, which illustrates the different approaches for creating a temp table.\",\"breadcrumb\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/#primaryimage\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"Bipartite Graph\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/examples.javacodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java Development\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Core Java\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"sql\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/sql\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"SQL Temp Table Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Examples and Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/javacodegeeks\",\"https:\/\/x.com\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/9874407a37b028e8be3276e2b5960d13\",\"name\":\"Yatin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/09\/cropped-Yatin-Batra_avatar_1515758148-96x96.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/09\/cropped-Yatin-Batra_avatar_1515758148-96x96.jpg\",\"caption\":\"Yatin\"},\"description\":\"An experience full-stack engineer well versed with Core Java, Spring\/Springboot, MVC, Security, AOP, Frontend (Angular &amp; React), and cloud technologies (such as AWS, GCP, Jenkins, Docker, K8).\",\"sameAs\":[\"https:\/\/www.javacodegeeks.com\"],\"url\":\"https:\/\/examples.javacodegeeks.com\/author\/yatin-batra\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQL Temp Table Example - Java Code Geeks","description":"Interested to learn more? Then check out our detailed example on SQL Temp Table, which illustrates the different approaches for creating a temp table.","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:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/","og_locale":"en_US","og_type":"article","og_title":"SQL Temp Table Example - Java Code Geeks","og_description":"Interested to learn more? Then check out our detailed example on SQL Temp Table, which illustrates the different approaches for creating a temp table.","og_url":"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2019-09-30T08:00:24+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","type":"image\/jpeg"}],"author":"Yatin","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Yatin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/"},"author":{"name":"Yatin","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/9874407a37b028e8be3276e2b5960d13"},"headline":"SQL Temp Table Example","datePublished":"2019-09-30T08:00:24+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/"},"wordCount":381,"commentCount":0,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","keywords":["mysql","sql"],"articleSection":["sql"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/","url":"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/","name":"SQL Temp Table Example - Java Code Geeks","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","datePublished":"2019-09-30T08:00:24+00:00","description":"Interested to learn more? Then check out our detailed example on SQL Temp Table, which illustrates the different approaches for creating a temp table.","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/#primaryimage","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","width":150,"height":150,"caption":"Bipartite Graph"},{"@type":"BreadcrumbList","@id":"https:\/\/examples.javacodegeeks.com\/sql-temp-table-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/examples.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java Development","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/"},{"@type":"ListItem","position":3,"name":"Core Java","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/"},{"@type":"ListItem","position":4,"name":"sql","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/sql\/"},{"@type":"ListItem","position":5,"name":"SQL Temp Table Example"}]},{"@type":"WebSite","@id":"https:\/\/examples.javacodegeeks.com\/#website","url":"https:\/\/examples.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Examples and Code Snippets","publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/examples.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/examples.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/9874407a37b028e8be3276e2b5960d13","name":"Yatin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/09\/cropped-Yatin-Batra_avatar_1515758148-96x96.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/09\/cropped-Yatin-Batra_avatar_1515758148-96x96.jpg","caption":"Yatin"},"description":"An experience full-stack engineer well versed with Core Java, Spring\/Springboot, MVC, Security, AOP, Frontend (Angular &amp; React), and cloud technologies (such as AWS, GCP, Jenkins, Docker, K8).","sameAs":["https:\/\/www.javacodegeeks.com"],"url":"https:\/\/examples.javacodegeeks.com\/author\/yatin-batra\/"}]}},"_links":{"self":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/78372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/users\/119"}],"replies":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=78372"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/78372\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media\/1204"}],"wp:attachment":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=78372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=78372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=78372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}