on 05-22-2014 11:53 AM
Hi Experts,
I have got couple of doubts in HANA ,Please clarify my doubts ., I will assign points for you .
a) How to change fields dimension in HANA ? is it possible to increase dimension of fields ,when table contain data ?
I am loading Customer table from flat files ,after loading couple of records, I need to extend or change field dimension to load another set of data in that same table
b) How to delete only content of table in SAP HANA?
c) What happened if we load same set of data number of times ? or duplicate records in HANA?
Regards.
hari
.. Quite simple questions.. Just caught my eye while browsing for something else..
a) How to change fields dimension in HANA ? is it possible to increase dimension of fields ,when table contain data ? I am loading Customer table from flat files ,after loading couple of records, I need to extend or change field dimension to load another set of data in that same table
Ans: ALTER TABLE table_name ALTER (my_column current_datatype(new_dimension_value));
ALTER TABLE tt_table ALTER (my_col1 nvarchar(30));
b) How to delete only content of table in SAP HANA?
two options: DELETE FROM table_name <where_condition> -- deletes data based on where condition
or TRUNCATE TABLE <table_name>; -- deletes all the records.
c) What happened if we load same set of data number of times ? or duplicate records in HANA?
Didn't understand.. it will create duplicate records. What do you expect ?
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.