Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Alter Table - Error

$
0
0

Hi Sri,

Altering data type of a column is supported only if it is a COLUMN store table.

I tried the following


 

SET schema sreehariv;



create
columntable"TIME_TEST_COL" ("CRTIME"DATE);


create table"TIME_TEST_ROW" ("CRTIME"DATE);



insert into"TIME_TEST_COL"values(CURRENT_DATE);



insert into"TIME_TEST_ROW"values(CURRENT_DATE);



ALTER TABLE"TIME_TEST_ROW"ALTER ("CRTIME"TIMESTAMP);

{

 

 

Could not execute 'ALTER TABLE "TIME_TEST_ROW" ALTER ("CRTIME" TIMESTAMP)' in 392 ms 612 µs .

 

SAP DBTech JDBC: [7] (at 35): feature not supported: cannot modify data type of column: CRTIME: line 1 col 36 (at pos 35)

 

 

}

ALTER TABLE"TIME_TEST_COL"ALTER ("CRTIME"TIMESTAMP);

 

 

Where, the row store table could not be altered .

 

reply.JPG


Sreehari

 

Message was edited by: Sreehari V Pillai - With better clarification


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>