on 06-26-2015 12:16 PM
Can Anybody help me in altering table having primary key want to add another primary key(writing sql script in hana for adding second primary key )?
raghav
Its simple
ALTER TABLE "ID158443"."TCURF" ADD PRIMARY KEY (MANDT , KURST , FCURR , TCURR , GDATU);
if u have already primary key ,, and alter gives error in this case first drop existing primary key constraint
and create the new one
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.