3

DB 内のすべてのテーブルに対して、created_date と updated_date の 2 つの列が必要です。Oracle で次の SQL を試していますが、機能しません。

create table tmptmp (
  id number(10), 
  created TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
  updated TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE TIMESTAMP
);

上記により、次のエラーが発生します。

Error at Command Line:5 Column:42
Error report:
SQL Error: ORA-00907: missing right parenthesis
00907. 00000 -  "missing right parenthesis"
*Cause:    
*Action:

ここで何が問題なのか手がかりはありますか?

4

0 に答える 0