From Seo Wiki - Search Engine Optimization and Programming Languages
Embedded SQL is a method of combining the computing power of a programming language and the database manipulation capabilities of SQL. Embedded SQL statements are SQL statements written inline with the program source code of the host language. The embedded SQL statements are parsed by an embedded SQL preprocessor and replaced by host-language calls to a code library. The output from the preprocessor is then compiled by the host compiler. This allows programmers to embed SQL statements in programs written in any number of languages such as: C/C++, COBOL and Fortran.
The ANSI SQL standards committee defined the embedded SQL standard in two steps: a formalism called Module Language was defined, then the embedded SQL standard was derived from Module Language. The SQL standard defines embedding of SQL as embedded SQL and the language in which SQL queries are embedded is referred to as the host language. A popular host language is C. The mixed C and embedded SQL is called Pro*C in Oracle and Sybase database management systems. In the PostgreSQL database management system this precompiler is called ECPG. Other embedded SQL precompilers are Pro*Ada, Pro*COBOL, Pro*FORTRAN, Pro*Pascal, and Pro*PL/I.
Systems that support Embedded SQL
- Pro*Ada was officially desupported by Oracle in version 7.3. Starting with Oracle8, Pro*Ada has been replaced by SQL*Module but appears to have not been updated since. SQL*Module is a module language that offers a different programming method from embedded SQL. SQL*Module supports the Ada83 language standard for Ada.
- Pro*C became Pro*C/C++ with Oracle8. Pro*C/C++ is currently supported as of Oracle Database 11g.
- Pro*COBOL is currently supported as of Oracle Database 11g.
- Pro*FORTRAN is no longer updated as of Oracle8 but Oracle will continue to issue patch releases as bugs are reported and corrected.
- Pro*Pascal was not released with Oracle8.
- Pro*PL/I was not released with Oracle8. The Pro*PL/I Supplement to the Oracle Precompilers Guide, however, continues to make appearances in the Oracle Documentation Library (current as of release 11g).
- ECPG is part of PostgreSQL since version 6.3.
- SESC is an embedded SQL precompiler provided by Altibase Corp. for its DBMS server.
Systems that do not support Embedded SQL
Microsoft SQL Server
- ↑ "The Module Language Concept". SQL*Module for Ada Programmer's Guide, Release 8.0, Chapter 1. Introduction to SQL*Module. Oracle Corporation. http://download.oracle.com/docs/cd/B10501_01/appdev.920/a58231/ch1.htm#2889. Retrieved 2008-07-14.
- ↑ "DB2 Database for Linux, UNIX and Windows". Developing Embedded SQL Applications. IBM. http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.apdv.embed.doc/doc/c0007014.htm. Retrieved 2009-04-10.
- ↑ "Ada Support in Version 8". Oracle9i Database Migration, Release 2 (9.2), Chapter 5. Compatibility and Interoperability. Oracle Corporation. http://download.oracle.com/docs/cd/B10501_01/server.920/a96530/migcompa.htm#1010868. Retrieved 2008-07-14.
- ↑ 4.0 4.1 4.2 "Language Alternatives". Pro*COBOL Precompiler Programmer's Guide, Release 8.0, Chapter 1. Introduction. Oracle Corporation. http://download.oracle.com/docs/cd/A64702_01/doc/server.805/a58232/ch01.htm#505. Retrieved 2008-07-14.
- ↑ "Deprecated Database Engine Features in SQL Server 2008". SQL Server 2008 Books Online (March 2009). Microsoft. http://msdn.microsoft.com/en-us/library/ms143729.aspx. Retrieved 2009-04-10.
- ↑ "An Open Pre-Compiler for Embedded SQL". MySQL DevZone Articles. Mysql. http://dev.mysql.com/tech-resources/articles/precompiler-for-embedded-sql.html. Retrieved 2009-04-10.
- ↑ "EmbeddedSQL". Sybase Products. Sybase. http://www.sybase.com/products/archivedproducts/embeddedsql. Retrieved 2009-04-10.
- Introduction to Pro*C Embedded SQL
- Embedded SQL with Pro*C
- SQL*Module for Ada Programmer's Guide, Release 8.0
- ECPG, PostgreSQL 8.3 Documentationde:Embedded SQL