Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9193

Re: Calling functions for default values?

$
0
0

Why not try using Generated Column?

It may satisfy your requirements however there are certain restrictions on which functions can be used and also I dont think you can call custom defined scalar UDF functions here.

 

Example below:

 

alter table "MYPACKAGE."TABLE1" add ("DATE2" DATE null GENERATED ALWAYS AS ADD_DAYS(DATE1, DAYS))


Viewing all articles
Browse latest Browse all 9193

Trending Articles



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