create Table payment_record(
payment_record_id int NOT NULL,
payment_number Varchar(5) NOT NULL UNIQUE,
recieved_from_client Number (8,2) NOT NULL DEFAULT 0.00,
Paid_to_client Number (8,2) NOT NULL DEFAULT 0.00,
payment_date Date NOT NULL,
PRIMARY KEY(payment_record_id));
结果
SQL> create Table payment_record(
2 payment_record_id int NOT NULL,
3 payment_number Varchar(5) NOT NULL UNIQUE,
4 recieved_from_client Number (8,2) NOT NULL DEFAULT 0.00,
5 Paid_to_client Number (8,2) NOT NULL DEFAULT 0.00,
6 payment_date Date NOT NULL,
7 PRIMARY KEY(payment_record_id));
recieved_from_client Number (8,2) NOT NULL DEFAULT 0.00,
*
ERROR at line 4:
ORA-00907: missing right parenthesis
请问我哪里错了?我正在尝试创建一个默认情况下的表
Paid_to_client
recieved_from_client
如果值未分配给它,则可以产生 0.00