What is the SQL command to add a (primary) key to a table in SAP HANA?
The ALTER TABLE docu form SAP Library is cryptic to me
What is the SQL command to add a (primary) key to a table in SAP HANA?
The ALTER TABLE docu form SAP Library is cryptic to me
For creating Primary key on existing table use the following syntax in SQL Console:
alter table "schemaName"."tableName" add constraint primary_key_alias Primary KEY("Column_Name");
Here primary_key_alias is the name for the primary key. For more info goto: SAP help