1 ) A system for controlling an access to a database, comprising: an acquiring section that acquires an access program including a plurality of database access instructions; a detecting section which detects a plurality of different tables in the database that are accessed by the plurality of access instructions; a join control section which executes a join instruction prior to the execution of the access instructions, the join instruction obtaining a result table from the database by combining the plurality of different tables detected; and an access control section which performs control by having each of the plurality of access instructions access the result table.