Jump to content

Module SQL

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Helena (talk | contribs) at 11:41, 30 March 2023 (-- Draft creation using the WP:Article wizard --). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Module SQL is a method of combining the computing power of a programming language and the database manipulation capabilities of SQL. Module SQL statements are SQL statements written in an SQL client module, that can be called as routines from the host language program source code like a host language routine. An SQL standard Module Language file is compiled into calls to a SQL runtime library that interacts with the Database management system. This allows programmers to call SQL statements from programs written in any number of languages such as C/C++, Ada, COBOL and Fortran.

Using Module Language is very straightforward: place all SQL code in a separate module, and define an interface between the module containing the SQL code and the host program. [1] The SQL standard defines an SQL module as an SQL client module and the language in which SQL queries are called is referred to as the host language. A popular host language is C.

Systems that support module SQL

Microsoft SQL Server

ODBC
SQL modules is a technique among others for accessing the DBMS with ODBC. [2]

Mimer SQL

Mimer SQL for Linux, macOS, OpenVMS and Windows support module SQL.[3]

C/C++
Module SQL for C/C++ is supported on Linux, macOS, OpenVMS and Windows.
COBOL
Module SQL for COBOL is supported on OpenVMS.
Fortran
Module SQL for Fortran is supported on OpenVMS.
Pascal
Module SQL for Pascal is supported on OpenVMS.

Oracle Database

Ada
Starting with Oracle8, SQL*Module uses Ada but appears to have not been updated since.[4] SQL*Module is a module language that supports the Ada83 language standard for Ada.

References

  1. ^ "The Module Language Concept". SQL*Module for Ada Programmer's Guide, Release 8.0, Chapter 1. Introduction to SQL*Module. Oracle Corporation. Retrieved 2023-03-30.
  2. ^ "SQL Modules". Microsoft. Retrieved 2023-03-30.
  3. ^ "Module SQL". Mimer SQL Programmer's Manual version 11.0, Module SQL. Mimer SQL.
  4. ^ "Ada Support in Version 8". Oracle9i Database Migration, Release 2 (9.2), Chapter 5. Compatibility and Interoperability. Oracle Corporation. Retrieved 2023-03-30.