Set ORACLE table fields default value to a formular
问题 I have an oracle table like this: create table tms_transaction_tbl ( trans_id number primary key, location_id number, trans_date date, resource_id number, ts_id number, max_value number, booked_units number default 0, remaining number default (select max_value-booked_units), booked number not null , user_id number, trans_time timestamp ); as you can see I tried to set default value of remaining to (max_value-booked_units) remainging number default (select max_value-booked_units), but it gives