Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
テーブルにvalidFrom列を追加しようとしています
これは私の質問です
alter table mytable add validFrom date default getdate() not null
私は次のようなエラーが発生しています
ORA-04044: procedure, function, package, or type is not allowed here
助けてください
Oracleには機能がありませんgetdate()。マニュアルを調べると簡単に見つけることができます。
getdate()
SYSDATEまたはを使用する必要がありますCURRENT_DATE
SYSDATE
CURRENT_DATE
ALTER TABLE mytable ADD (validFrom date DEFAULT sysdate);