i am trying to add a column validFrom to my table
this is my query
alter table mytable add validFrom date default getdate() not null
i am getting error like
ORA-04044: procedure, function, package, or type is not allowed here
please help
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Oracle does not have a
getdate()function – something which can easily be found out by looking into the manual.You need to use
SYSDATEorCURRENT_DATE