A plurality of records are collectively manipulated with a simple structure, in a technology for manipulating a database without having to formulate SQL statements. A database access unit (120) of a programmable logic controller (100) generates an SQL statement for manipulating a plurality of records, with reference to a plurality of structure data included in a data group generated by an execution unit (110) and definition data representing a definition of the structure data, and executes the SQL statement.