An in-vehicle electronic control apparatus, comprising: a data collection unit adapted to acquire a plurality of pieces of data of external recognition sensor information, map information, subject vehicle information, driver information or vehicle-to-vehicle information at respective acquisition times; a data recognition unit adapted to perform a recognition process on the data received from the data collection unit, a data storage unit adapted to store the plurality of pieces of data as a database using a ring buffer configuration, wherein the data storage unit is adapted to store the pieces of data in a ring buffer in the order of their acquisition times by updating and overwriting older data in the ring buffer; a table generation unit adapted to generate a plurality of tables which correspond to a plurality of different data conditions, each of the plurality of tables having storage place identification information as address information for identifying a storage place for the piece of data being of a respective one of one or more types among the pieces of data stored in the data storage unit, the types being a relative distance, a relative speed, a time-to-collision or a deceleration speed; and a table selection unit adapted to select a table on the basis of a predetermined table selection condition from among the plurality of tables, wherein the data storage unit is further adapted to determine that an update is unnecessary if the acquisition time of a piece of data is earlier than predetermined limit time, and to repeat the determination whether an update is necessary in accordance with the number of ring buffers; and wherein the data recognition unit is adapted to recognize at least one of a driving mode, a driving scene, an executed application, a priority, a security, and a usage frequency on the basis of the pieces of data received from the data collection unit, then to store the pieces of data received from the data collection unit in the data storage unit, and to set the predetermined table selection condition on the basis of the recognition result. a data collection unit adapted to acquire a plurality of pieces of data of external recognition sensor information, map information, subject vehicle information, driver information or vehicle-to-vehicle information at respective acquisition times; a data recognition unit adapted to perform a recognition process on the data received from the data collection unit, a data storage unit adapted to store the plurality of pieces of data as a database using a ring buffer configuration, wherein the data storage unit is adapted to store the pieces of data in a ring buffer in the order of their acquisition times by updating and overwriting older data in the ring buffer; a table generation unit adapted to generate a plurality of tables which correspond to a plurality of different data conditions, each of the plurality of tables having storage place identification information as address information for identifying a storage place for the piece of data being of a respective one of one or more types among the pieces of data stored in the data storage unit, the types being a relative distance, a relative speed, a time-to-collision or a deceleration speed; and a table selection unit adapted to select a table on the basis of a predetermined table selection condition from among the plurality of tables, wherein the data storage unit is further adapted to determine that an update is unnecessary if the acquisition time of a piece of data is earlier than predetermined limit time, and to repeat the determination whether an update is necessary in accordance with the number of ring buffers; and wherein the data recognition unit is adapted to recognize at least one of a driving mode, a driving scene, an executed application, a priority, a security, and a usage frequency on the basis of the pieces of data received from the data collection unit, then to store the pieces of data received from the data collection unit in the data storage unit, and to set the predetermined table selection condition on the basis of the recognition result.