on 01-10-2016 4:07 AM
Hello Everyone,
I am trying the execute Alter command using SQL Console to change the Column type from NVARCHAR to SMALLINT in SAP HANA but i am getting the below error -
ALTER TABLE "TEST_TAB" ALTER (ID SMALLINT);
SAP DBTech JDBC: [7]: feature not supported: cannot modify column type from nvarchar to smallint: ID: line 1 col 31 (at pos 30)
is there any way out to rectify the above . SAP HANA Version SPS09.
Thanks,
Shivam
Hello Shivam,
in general altering the table column type from nvarchar to smallint is possible in case the values of the column can be converted to smallint (e.g. no characters, integers in smallint integer range, ...).
But it is not possible if the column is a key column. In that case the type conversion is not possible. As your column is called "ID" i assume that you try to change the type of a primary key column which is not possible.
Regards,
Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.