on 01-02-2015 4:53 PM
Hi All,
I have created a table with Product_Name of Length 100 and loaded the data. Now I would like the chage the length to 20. But I am getting the error. Is it like I should drop the column, again add the column with length 20 and load the data again. Is it the only way I can do. Please advise.
alter table "Sales-Product"."PRODUCT" alter (PRODUCT_NAME NVARCHAR(20));
Error: SAP DBTech JDBC: [7] (at 45): feature not supported: cannot shorten the field length: PRODUCT_NAME: line 1 col 46 (at pos 45)
Hi Sreelatha ,
Please go through the HANA Documentation before Posting the Question.
Here are some excerpts from HANA Documentation:
You can visit the link:
ALTER TABLE - SAP HANA SQL and System Views Reference - SAP Library
So you can do the following:
You can drop and create it. Take the backup of table to reload it.
Hope this helps
-
Pratik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.