Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

How to alter column's default value

$
0
0

Hi experts,

 

I'm trying to alter column's default value,I can set the default value to number,string,or system date function.

But when try to set to an expression,error encountered,as below.

 

alter table t_default alter(str nvarchar(100) default upper('abc'));

alter table t_default alter(str nvarchar(100) default 'abc'||'c');

alter table t_default alter(num bigint default 100*100);

 

Would like to know whether hana support define expression or reference other columns in default value definition.

I'm using SPS09.

 

thx.

 

Kelvin


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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