Professional Documents
Culture Documents
In SQL, Data Definition Language (DDL) describes the creation of a table and other database
artifacts
When you create a table, you define the columns with their names and datatypes plus other
features
Sample for a hdbtable declaration:
/* FIRST VERSION */
/*create*/ column table PERSON (
PERSONID BIGINT NOT NULL,
FIRSTNAME NVARCHAR(100),
LASTNAME NVARCHAR(100))
▪ Over time, you also need to change the tables (a.k.a. table or schema evolution or lifecycle management)
/* SECOND VERSION */
/*create*/ column table PERSON (
PERSONID BIGINT NOT NULL,
FIRSTNAME NVARCHAR(100),
LASTNAME NVARCHAR(100),
BIRTHDATE DATE )
HDBTABLE
▪ Creates or modifies a table in SAP HANA. If the table
exists in SAP HANA, an intermediate table is created
and content copied
HDBDROPCREATETABLE
▪ Always creates a new version of the table without
copying the content
HDBMIGRATIONTABLE
▪ Allows you to alter the table
== migration = 3
alter table PERSON alter (STREET
varchar(200));
alter table PERSON add (HOUSENUMBER int);
Access_Roles
© 2022 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 8
HDI concepts for tables and rights
Getting access rights to the data
An access role has to be defined and granted Runtime User Design Time
(RT-User) User (DT-User)
to a user who wants to access the data full access rights
as defined in
default access role
A Granter User should get grantable rights
and can grant roles to individual users HDI Container Concept
generated
objects
access to runtime
data according to <HDI-Container> <HDI- <HDI-
rights Container>#DI Container>#OO
Granter
Individual User grants roles Granter User Access_Roles
HDI
▪ Table creation and lifecycle management (evolution)
with data preservation
− Different constructs are available such as
• HDBTABLE
• HDBMIGRATIONTABLE
▪ Defining roles to access the data with an HDI container
− DT/RT users are cloud-generated “technical users”
that are maintained as “SHARED SERVICE KEYS”
− Define a ”Granter Role” that is allowed to assign
these internal HDI roles
open@sap.com
Follow all of SAP
www.sap.com/contactsap