Relational database management systems (RDBMSs) store data in the form oftables. Queries on such databases are often stated in Structured Query Language(SQL). SQL is nonprocedural in the same sense that logic programming is nonprocedural. The user does not describe how to retrieve the answer; rather, heor she describes only the characteristics of the answer. The connection betweenlogic programming and RDBMSs should be obvious. Simple tables of information can be described by Prolog structures, and relationships between tablescan be conveniently and easily described by Prolog rules. The retrieval processis inherent in the resolution operation. The goal statements of Prolog providethe queries for the RDBMS. Logic programming is thus a natural match to theneeds of implementing an RDBMS.
đang được dịch, vui lòng đợi..
