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

Re: HANA Changing the type of a column

$
0
0

Do you mean to alter the type in the table?

 

If so, you could use the ALTER command, check the alter_column_clause:

http://help.sap.com/hana/html/sql_alter_table.html#alter_table_alter_column_clause

 

CREATE TABLE t (a INT, b INT);
ALTER TABLE t ALTER (b INT DEFAULT 10);

 

If, alternatively, you mean to change the type just in the view, then you can achieve that in the calculated column.

Note that you actually define the calculated column's type, so you can have the output in any format you want.

 

Best regards,

Henrique.


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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