Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

user defined function to set a default value of a column

826439Jan 16 2012 — edited Jan 16 2012
Hi All

Can we use user defined function to set a default value of a column ??

for example:
create or replace  function test1  return number is
begin 
return 10;
end;


create table testt
 (id  as test1,
  name varchar2(20));

error:
ORA-02000: missing ( keyword
Thanks
Ashwani
This post has been answered by Billy Verreynne on Jan 16 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 13 2012
Added on Jan 16 2012
16 comments
6,839 views