SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Convert Between an In-Memory Table and an Extended Table

Convert between an in-memory and an extended table (and vice-versa) using SQL scripts in SAP Web IDE for SAP HANA.

Overview

Elena Grigorova E Elena Grigorova November 1, 2022
Created on August 8, 2018
Contributors

Prerequisites

Prerequisites

Steps

Next Steps

Time to Complete

15 Min


Step 1 Convert to an in-memory table using SQLScript

Right-click on your database, and select Open SQL Console. You can also use the shortcut Ctrl + Alt + C or the SQL button under the navigation menu.

Open SQL Console
Open SQL Console

Copy and paste the script below into the console, and press then green play button to execute the script.

SQL
ALTER TABLE "TPCH"."NATION_DT" NOT USING EXTENDED STORAGE

Executing Script
Executing Script

Go back to the Tables tab and click the refresh icon. You should see that the NATION_DT table is no longer an EXTENDED table, and is now an in-memory table.

Refresh Tables
Refresh Tables

Step 2 Convert to an extended table using SQLScript
+
Step 3 Foreign key considerations
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 3
1. Convert to an in-memory table using SQLScript 2. Convert to an extended table using SQLScript 3. Foreign key considerations
Next