<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Difference between CREATE LOCAL TEMPORARY COLUMN TABLE and CREATE LOCAL TEMPORARY TABLE in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/difference-between-create-local-temporary-column-table-and-create-local/qaa-p/12253062#M4588686</link>
    <description>&lt;P&gt;Hi Gaurav,&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Local temporary tables created using the CREATE LOCAL TEMPORARY TABLE statement remain until they are either explicitly dropped, or until the connection closes. Local temporary tables created in IF statements using CREATE LOCAL TEMPORARY TABLE also persist after the IF statement completes.&lt;BR /&gt;Tables created using CREATE LOCAL TEMPORARY TABLE do not appear in the SYSTABLE view of the system catalog.&lt;/P&gt;&lt;P&gt;I would suggest checking &lt;A href="https://launchpad.support.sap.com/#/notes/2800007" target="_blank"&gt;KBA 2800007 - FAQ: SAP HANA Temporary Tables&lt;/A&gt; for further details on creating the different types of temporary tables on SAP HANA. It also states typical errors and bugs regarding temporary tables.&lt;BR /&gt;For "CREATE LOCAL TEMPORARY TABLE", a known bug is identified and it is described by SAP Note &lt;A href="https://launchpad.support.sap.com/#/notes/2568196" target="_blank"&gt;2568196 - CREATE LOCAL TEMPORARY TABLE Statement Gets Rolled Back by ROLLBACK&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Anna Szalay&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 08:43:07 GMT</pubDate>
    <dc:creator>Sz_An</dc:creator>
    <dc:date>2020-09-29T08:43:07Z</dc:date>
    <item>
      <title>Difference between CREATE LOCAL TEMPORARY COLUMN TABLE and CREATE LOCAL TEMPORARY TABLE</title>
      <link>https://community.sap.com/t5/technology-q-a/difference-between-create-local-temporary-column-table-and-create-local/qaq-p/12253061</link>
      <description>&lt;P&gt;Hi Friends,&lt;/P&gt;
  &lt;P&gt;I came across CREATE LOCAL TEMPORARY TABLE and found that we can do delete and update operations on it whereas we cannot do any modification to the table created by CREATE LOCAL TEMPORARY &lt;STRONG&gt;&lt;EM&gt;COLUMN&lt;/EM&gt; &lt;/STRONG&gt;TABLE.&lt;/P&gt;
  &lt;P&gt;which one is better for usage in the SQL stored procedure and why? What if I always use CREATE LOCAL TEMPORARY TABLE? Is there any disadvantage?&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Gaurav&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/difference-between-create-local-temporary-column-table-and-create-local/qaq-p/12253061</guid>
      <dc:creator>kgaurav2k14</dc:creator>
      <dc:date>2020-09-28T10:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between CREATE LOCAL TEMPORARY COLUMN TABLE and CREATE LOCAL TEMPORARY TABLE</title>
      <link>https://community.sap.com/t5/technology-q-a/difference-between-create-local-temporary-column-table-and-create-local/qaa-p/12253062#M4588686</link>
      <description>&lt;P&gt;Hi Gaurav,&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Local temporary tables created using the CREATE LOCAL TEMPORARY TABLE statement remain until they are either explicitly dropped, or until the connection closes. Local temporary tables created in IF statements using CREATE LOCAL TEMPORARY TABLE also persist after the IF statement completes.&lt;BR /&gt;Tables created using CREATE LOCAL TEMPORARY TABLE do not appear in the SYSTABLE view of the system catalog.&lt;/P&gt;&lt;P&gt;I would suggest checking &lt;A href="https://launchpad.support.sap.com/#/notes/2800007" target="_blank"&gt;KBA 2800007 - FAQ: SAP HANA Temporary Tables&lt;/A&gt; for further details on creating the different types of temporary tables on SAP HANA. It also states typical errors and bugs regarding temporary tables.&lt;BR /&gt;For "CREATE LOCAL TEMPORARY TABLE", a known bug is identified and it is described by SAP Note &lt;A href="https://launchpad.support.sap.com/#/notes/2568196" target="_blank"&gt;2568196 - CREATE LOCAL TEMPORARY TABLE Statement Gets Rolled Back by ROLLBACK&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Anna Szalay&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:43:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/difference-between-create-local-temporary-column-table-and-create-local/qaa-p/12253062#M4588686</guid>
      <dc:creator>Sz_An</dc:creator>
      <dc:date>2020-09-29T08:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between CREATE LOCAL TEMPORARY COLUMN TABLE and CREATE LOCAL TEMPORARY TABLE</title>
      <link>https://community.sap.com/t5/technology-q-a/difference-between-create-local-temporary-column-table-and-create-local/qaa-p/12253063#M4588687</link>
      <description>&lt;P&gt;Hi Gaurav,&lt;/P&gt;&lt;P&gt;Thank you for
visiting SAP Community to get answers to your questions.&lt;/P&gt;&lt;P&gt;If
you're hoping to connect with readers, please consider adding a picture to your
profile as it encourages readers to respond to you. Here's how to do it: &lt;A href="https://www.youtube.com/watch?v=F5JdUbyjfMA&amp;amp;list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS"&gt;https://www.youtube.com/watch?v=F5JdUbyjfMA&amp;amp;list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Since
you asked a question, don't forget to
mark the answer that helped you most and is correct.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Anna Szalay&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/difference-between-create-local-temporary-column-table-and-create-local/qaa-p/12253063#M4588687</guid>
      <dc:creator>Sz_An</dc:creator>
      <dc:date>2020-09-29T08:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between CREATE LOCAL TEMPORARY COLUMN TABLE and CREATE LOCAL TEMPORARY TABLE</title>
      <link>https://community.sap.com/t5/technology-q-a/difference-between-create-local-temporary-column-table-and-create-local/qaa-p/12253064#M4588688</link>
      <description>&lt;P&gt;Hi Anna,&lt;/P&gt;&lt;P&gt;Thanks for your reply. I think you misunderstood my question, may be I didn't put it the right way. Let me rephrase it. I want to know the difference between the temporary tables created by &lt;/P&gt;&lt;P&gt;1. CREATE LOCAL TEMPORARY COLUMN TABLE&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;2. CREATE LOCAL TEMPORARY TABLE&lt;/P&gt;&lt;P&gt;if you note that 2nd table is not a column table. However, we can do update and delete operation on this 2nd table which we cannot do it in temporary column table. I want to know the usage level information on which one to use when and why SAP has given update and delete operation capability to table created by CREATE LOCAL TEMPORARY TABLE and not created by CREATE LOCAL TEMPORARY COLUMN TABLE statement.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;P&gt;HDB 2.0 SP3&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/difference-between-create-local-temporary-column-table-and-create-local/qaa-p/12253064#M4588688</guid>
      <dc:creator>kgaurav2k14</dc:creator>
      <dc:date>2020-09-29T09:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between CREATE LOCAL TEMPORARY COLUMN TABLE and CREATE LOCAL TEMPORARY TABLE</title>
      <link>https://community.sap.com/t5/technology-q-a/difference-between-create-local-temporary-column-table-and-create-local/qaa-p/12253065#M4588689</link>
      <description>&lt;P&gt;Hi Gaurav. Seems there is an issue with the 2.0 SPS3 documentation because it says that the COLUMN table should be created by default, but I checked and indeed it is ROW table created in case of LOCAL TEMPORARY...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE LOCAL TEMPORARY COLUMN TABLE "#TEST_TABLE1" (ID INTEGER, NAME VARCHAR(10)); 
CREATE LOCAL TEMPORARY  TABLE "#TEST_TABLE2" (ID INTEGER, NAME VARCHAR(10)); 
CREATE LOCAL TEMPORARY ROW TABLE "#TEST_TABLE3" (ID INTEGER, NAME VARCHAR(10)); 


SELECT TABLE_NAME, "IS_COLUMN_TABLE" FROM M_TEMPORARY_TABLES
WHERE TABLE_NAME LIKE '%TEST%'
ORDER BY 1;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;returns&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLE_NAME  |IS_COLUMN_TABLE|
------------|---------------|
#TEST_TABLE1|TRUE           |
#TEST_TABLE2|FALSE          |
#TEST_TABLE3|FALSE          |
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And per &lt;A href="https://help.sap.com/viewer/4fe29514fd584807ac9f2a04f6754767/2.0.03/en-US/20d58a5f75191014b2fe92141b7df228.html?q=%22LOCAL%20TEMPORARY%20ROW%20TABLE%22" target="test_blank"&gt;https://help.sap.com/viewer/4fe29514fd584807ac9f2a04f6754767/2.0.03/en-US/20d58a5f75191014b2fe92141b7df228.html?q=%22LOCAL%20TEMPORARY%20ROW%20TABLE%22&lt;/A&gt; indeed row temporary table allows you to do Delete/Update/Upsert, that is not possible on column temporary table.&lt;/P&gt;&lt;P&gt;The description was fixed in the documentation for SP 04: "If neither ROW nor COLUMN is specified, the default ROW for temporary tables (local and global), and COLUMN for non temporary tables." &lt;A href="https://help.sap.com/viewer/4fe29514fd584807ac9f2a04f6754767/2.0.04/en-US/20d58a5f75191014b2fe92141b7df228.html" target="test_blank"&gt;https://help.sap.com/viewer/4fe29514fd584807ac9f2a04f6754767/2.0.04/en-US/20d58a5f75191014b2fe92141b7df228.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 15:17:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/difference-between-create-local-temporary-column-table-and-create-local/qaa-p/12253065#M4588689</guid>
      <dc:creator>Vitaliy-R</dc:creator>
      <dc:date>2020-09-30T15:17:50Z</dc:date>
    </item>
  </channel>
</rss>

