How can I do this dynamical update in Oracle?
问题 I have the model table defined like: MODEL (id NUMBER, capacity NUMBER ) and the flight table defined like: FLIGHT (flight_number NUMBER, available_seats NUMBER) I want to initialize the available_seats field in FLIGHT with the capacity number defined in MODEL each time a new row is inserted in FLIGHT table. Also I want to notify the user when the available_seats counts down to zero. How can I do this? 回答1: I would write a stored procedure called REGISTER FLIGHT, which would accept as