Question: why cgi is introduced in dbms?
Answer: The name CGI comes from the early days of the web, where webmasters wanted to connect legacy information systems such as databases to their web servers. The CGI program was executed by the server that provided a common "gateway" between the web server and the legacy information system.