Embedded SQ1

download Embedded SQ1

of 3

Transcript of Embedded SQ1

  • 7/31/2019 Embedded SQ1

    1/3

    Embedded SQL

    From Wikipedia, the free encyclopedia

    Jump to:navigation,search

    Embedded SQL is a method of combining thecomputingpower of aprogramming languageand thedatabasemanipulationcapabilities ofSQL. Embedded SQLstatementsare SQLstatements written inline with the programsource codeof the host language. The embedded SQL

    statements areparsedby an embedded SQLpreprocessorand replaced by host-languagecallsto

    a codelibrary. The output from the preprocessor is then compiled by the hostcompiler. Thisallows programmers to embed SQL statements in programs written in any number of languages

    such as:C/C++,COBOLandFortran.

    TheANSISQL 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.

    [1]

    The SQL standard defines embedding of SQL as embedded SQL andthe 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 calledPro*CinOracleandSybase

    database management systems. In thePostgreSQLdatabase management system this

    precompiler is calledECPG. Other embedded SQL precompilers are Pro*Ada, Pro*COBOL,Pro*FORTRAN, Pro*Pascal, and Pro*PL/I.

    Contents

    1 Systems that support Embedded SQLo 1.1 IBM DB2o 1.2 Oracle Corporationo 1.3 PostgreSQLo 1.4 Altibaseo 1.5 Data Access Corporationo 1.6 Microsoft SQL Servero 1.7 MySQL

    2 Systems that do not support Embedded SQLo 2.1 Microsoft SQL Servero 2.2 MySQLo 2.3 Sybase

    3 See also 4 References 5 External links

    Systems that support Embedded SQL

    IBM DB2

    http://en.wikipedia.org/wiki/Embedded_SQL#mw-headhttp://en.wikipedia.org/wiki/Embedded_SQL#mw-headhttp://en.wikipedia.org/wiki/Embedded_SQL#mw-headhttp://en.wikipedia.org/wiki/Embedded_SQL#p-searchhttp://en.wikipedia.org/wiki/Embedded_SQL#p-searchhttp://en.wikipedia.org/wiki/Embedded_SQL#p-searchhttp://en.wikipedia.org/wiki/Computinghttp://en.wikipedia.org/wiki/Computinghttp://en.wikipedia.org/wiki/Computinghttp://en.wikipedia.org/wiki/Programming_languagehttp://en.wikipedia.org/wiki/Programming_languagehttp://en.wikipedia.org/wiki/Programming_languagehttp://en.wikipedia.org/wiki/Databasehttp://en.wikipedia.org/wiki/Databasehttp://en.wikipedia.org/wiki/Data_Manipulation_Languagehttp://en.wikipedia.org/wiki/Data_Manipulation_Languagehttp://en.wikipedia.org/wiki/Data_Manipulation_Languagehttp://en.wikipedia.org/wiki/SQLhttp://en.wikipedia.org/wiki/SQLhttp://en.wikipedia.org/wiki/SQLhttp://en.wikipedia.org/wiki/Statement_%28programming%29http://en.wikipedia.org/wiki/Statement_%28programming%29http://en.wikipedia.org/wiki/Statement_%28programming%29http://en.wikipedia.org/wiki/Source_codehttp://en.wikipedia.org/wiki/Source_codehttp://en.wikipedia.org/wiki/Source_codehttp://en.wikipedia.org/wiki/Parsinghttp://en.wikipedia.org/wiki/Parsinghttp://en.wikipedia.org/wiki/Parsinghttp://en.wikipedia.org/wiki/Preprocessorhttp://en.wikipedia.org/wiki/Preprocessorhttp://en.wikipedia.org/wiki/Preprocessorhttp://en.wikipedia.org/wiki/Call_sitehttp://en.wikipedia.org/wiki/Call_sitehttp://en.wikipedia.org/wiki/Call_sitehttp://en.wikipedia.org/wiki/Library_%28computing%29http://en.wikipedia.org/wiki/Library_%28computing%29http://en.wikipedia.org/wiki/Library_%28computing%29http://en.wikipedia.org/wiki/Compilerhttp://en.wikipedia.org/wiki/Compilerhttp://en.wikipedia.org/wiki/Compilerhttp://en.wikipedia.org/wiki/Category:C_programming_language_familyhttp://en.wikipedia.org/wiki/Category:C_programming_language_familyhttp://en.wikipedia.org/wiki/Category:C_programming_language_familyhttp://en.wikipedia.org/wiki/COBOLhttp://en.wikipedia.org/wiki/COBOLhttp://en.wikipedia.org/wiki/COBOLhttp://en.wikipedia.org/wiki/Fortranhttp://en.wikipedia.org/wiki/Fortranhttp://en.wikipedia.org/wiki/Fortranhttp://en.wikipedia.org/wiki/ANSIhttp://en.wikipedia.org/wiki/ANSIhttp://en.wikipedia.org/wiki/ANSIhttp://en.wikipedia.org/wiki/Embedded_SQL#cite_note-modulelang-0http://en.wikipedia.org/wiki/Embedded_SQL#cite_note-modulelang-0http://en.wikipedia.org/wiki/Embedded_SQL#cite_note-modulelang-0http://en.wikipedia.org/wiki/Pro*Chttp://en.wikipedia.org/wiki/Pro*Chttp://en.wikipedia.org/wiki/Pro*Chttp://en.wikipedia.org/wiki/Oracle_Databasehttp://en.wikipedia.org/wiki/Oracle_Databasehttp://en.wikipedia.org/wiki/Oracle_Databasehttp://en.wikipedia.org/wiki/Sybasehttp://en.wikipedia.org/wiki/Sybasehttp://en.wikipedia.org/wiki/Sybasehttp://en.wikipedia.org/wiki/PostgreSQLhttp://en.wikipedia.org/wiki/PostgreSQLhttp://en.wikipedia.org/wiki/PostgreSQLhttp://en.wikipedia.org/w/index.php?title=ECPG&action=edit&redlink=1http://en.wikipedia.org/w/index.php?title=ECPG&action=edit&redlink=1http://en.wikipedia.org/w/index.php?title=ECPG&action=edit&redlink=1http://en.wikipedia.org/wiki/Ada_%28programming_language%29http://en.wikipedia.org/wiki/Ada_%28programming_language%29http://en.wikipedia.org/wiki/Pascal_%28programming_language%29http://en.wikipedia.org/wiki/Pascal_%28programming_language%29http://en.wikipedia.org/wiki/PL/Ihttp://en.wikipedia.org/wiki/PL/Ihttp://en.wikipedia.org/wiki/PL/Ihttp://en.wikipedia.org/wiki/Embedded_SQL#Systems_that_support_Embedded_SQLhttp://en.wikipedia.org/wiki/Embedded_SQL#Systems_that_support_Embedded_SQLhttp://en.wikipedia.org/wiki/Embedded_SQL#IBM_DB2http://en.wikipedia.org/wiki/Embedded_SQL#IBM_DB2http://en.wikipedia.org/wiki/Embedded_SQL#Oracle_Corporationhttp://en.wikipedia.org/wiki/Embedded_SQL#Oracle_Corporationhttp://en.wikipedia.org/wiki/Embedded_SQL#PostgreSQLhttp://en.wikipedia.org/wiki/Embedded_SQL#PostgreSQLhttp://en.wikipedia.org/wiki/Embedded_SQL#Altibasehttp://en.wikipedia.org/wiki/Embedded_SQL#Altibasehttp://en.wikipedia.org/wiki/Embedded_SQL#Data_Access_Corporationhttp://en.wikipedia.org/wiki/Embedded_SQL#Data_Access_Corporationhttp://en.wikipedia.org/wiki/Embedded_SQL#Microsoft_SQL_Serverhttp://en.wikipedia.org/wiki/Embedded_SQL#Microsoft_SQL_Serverhttp://en.wikipedia.org/wiki/Embedded_SQL#MySQLhttp://en.wikipedia.org/wiki/Embedded_SQL#MySQLhttp://en.wikipedia.org/wiki/Embedded_SQL#Systems_that_do_not_support_Embedded_SQLhttp://en.wikipedia.org/wiki/Embedded_SQL#Systems_that_do_not_support_Embedded_SQLhttp://en.wikipedia.org/wiki/Embedded_SQL#Microsoft_SQL_Server_2http://en.wikipedia.org/wiki/Embedded_SQL#Microsoft_SQL_Server_2http://en.wikipedia.org/wiki/Embedded_SQL#MySQL_2http://en.wikipedia.org/wiki/Embedded_SQL#MySQL_2http://en.wikipedia.org/wiki/Embedded_SQL#Sybasehttp://en.wikipedia.org/wiki/Embedded_SQL#Sybasehttp://en.wikipedia.org/wiki/Embedded_SQL#See_alsohttp://en.wikipedia.org/wiki/Embedded_SQL#See_alsohttp://en.wikipedia.org/wiki/Embedded_SQL#Referenceshttp://en.wikipedia.org/wiki/Embedded_SQL#Referenceshttp://en.wikipedia.org/wiki/Embedded_SQL#External_linkshttp://en.wikipedia.org/wiki/Embedded_SQL#External_linkshttp://en.wikipedia.org/wiki/Embedded_SQL#External_linkshttp://en.wikipedia.org/wiki/Embedded_SQL#Referenceshttp://en.wikipedia.org/wiki/Embedded_SQL#See_alsohttp://en.wikipedia.org/wiki/Embedded_SQL#Sybasehttp://en.wikipedia.org/wiki/Embedded_SQL#MySQL_2http://en.wikipedia.org/wiki/Embedded_SQL#Microsoft_SQL_Server_2http://en.wikipedia.org/wiki/Embedded_SQL#Systems_that_do_not_support_Embedded_SQLhttp://en.wikipedia.org/wiki/Embedded_SQL#MySQLhttp://en.wikipedia.org/wiki/Embedded_SQL#Microsoft_SQL_Serverhttp://en.wikipedia.org/wiki/Embedded_SQL#Data_Access_Corporationhttp://en.wikipedia.org/wiki/Embedded_SQL#Altibasehttp://en.wikipedia.org/wiki/Embedded_SQL#PostgreSQLhttp://en.wikipedia.org/wiki/Embedded_SQL#Oracle_Corporationhttp://en.wikipedia.org/wiki/Embedded_SQL#IBM_DB2http://en.wikipedia.org/wiki/Embedded_SQL#Systems_that_support_Embedded_SQLhttp://en.wikipedia.org/wiki/PL/Ihttp://en.wikipedia.org/wiki/Pascal_%28programming_language%29http://en.wikipedia.org/wiki/Ada_%28programming_language%29http://en.wikipedia.org/w/index.php?title=ECPG&action=edit&redlink=1http://en.wikipedia.org/wiki/PostgreSQLhttp://en.wikipedia.org/wiki/Sybasehttp://en.wikipedia.org/wiki/Oracle_Databasehttp://en.wikipedia.org/wiki/Pro*Chttp://en.wikipedia.org/wiki/Embedded_SQL#cite_note-modulelang-0http://en.wikipedia.org/wiki/ANSIhttp://en.wikipedia.org/wiki/Fortranhttp://en.wikipedia.org/wiki/COBOLhttp://en.wikipedia.org/wiki/Category:C_programming_language_familyhttp://en.wikipedia.org/wiki/Compilerhttp://en.wikipedia.org/wiki/Library_%28computing%29http://en.wikipedia.org/wiki/Call_sitehttp://en.wikipedia.org/wiki/Preprocessorhttp://en.wikipedia.org/wiki/Parsinghttp://en.wikipedia.org/wiki/Source_codehttp://en.wikipedia.org/wiki/Statement_%28programming%29http://en.wikipedia.org/wiki/SQLhttp://en.wikipedia.org/wiki/Data_Manipulation_Languagehttp://en.wikipedia.org/wiki/Databasehttp://en.wikipedia.org/wiki/Programming_languagehttp://en.wikipedia.org/wiki/Computinghttp://en.wikipedia.org/wiki/Embedded_SQL#p-searchhttp://en.wikipedia.org/wiki/Embedded_SQL#mw-head
  • 7/31/2019 Embedded SQ1

    2/3

    IBM DB2version 9 for Linux, UNIX and Windows supports embedded SQL for C, C++, Java,

    COBOL, FORTRAN and REXX although support for FORTRAN and REXX has beendeprecated.[2]

    Oracle Corporation

    Ada

    Pro*Ada was officially desupported byOraclein version 7.3. Starting with Oracle8,Pro*Ada has been replaced by SQL*Module but appears to have not been updated

    since.[3]SQL*Module is a module language that offers a different programming method

    from embedded SQL. SQL*Module supports the Ada83 language standard for Ada.

    C/C++Pro*Cbecame Pro*C/C++ with Oracle8. Pro*C/C++ is currently supported as of Oracle

    Database 11g.

    COBOL

    Pro*COBOL is currently supported as of Oracle Database 11g.

    FortranPro*FORTRAN is no longer updated as of Oracle8 but Oracle will continue to issue

    patch releases as bugs are reported and corrected.[4]

    Pascal

    Pro*Pascal was not released with Oracle8.[4]

    PL/IPro*PL/I was not released with Oracle8. The Pro*PL/I Supplement to the Oracle

    Precompilers Guide, however, continues to make appearances in the OracleDocumentation Library (current as of release 11g).

    [4]

    PostgreSQL

    C/C++ECPG is part ofPostgreSQLsince version 6.3.

    COBOL

    Cobol-ITis now distributing a COBOL precompiler for PostgreSQL

    Altibase

    C/C++SESC is an embedded SQL precompiler provided byAltibaseCorp. for its DBMS server.

    Data Access Corporation

    With DataFlex 3.2 and Visual DataFlex you can pass SQL statements via one of the Data Access

    CLI connectivity kits to Microsoft SQL Server, IBM DB2 or any ODBC supporting database.The results can be retrieved and processed.

    Microsoft SQL Server

    http://en.wikipedia.org/wiki/IBM_DB2http://en.wikipedia.org/wiki/IBM_DB2http://en.wikipedia.org/wiki/Embedded_SQL#cite_note-1http://en.wikipedia.org/wiki/Embedded_SQL#cite_note-1http://en.wikipedia.org/wiki/Embedded_SQL#cite_note-1http://en.wikipedia.org/wiki/Oracle_Corporationhttp://en.wikipedia.org/wiki/Oracle_Corporationhttp://en.wikipedia.org/wiki/Oracle_Corporationhttp://en.wikipedia.org/wiki/Embedded_SQL#cite_note-2http://en.wikipedia.org/wiki/Embedded_SQL#cite_note-2http://en.wikipedia.org/wiki/Embedded_SQL#cite_note-2http://en.wikipedia.org/wiki/Pro*Chttp://en.wikipedia.org/wiki/Pro*Chttp://en.wikipedia.org/wiki/Embedded_SQL#cite_note-langalts-3http://en.wikipedia.org/wiki/Embedded_SQL#cite_note-langalts-3http://en.wikipedia.org/wiki/Embedded_SQL#cite_note-langalts-3http://en.wikipedia.org/wiki/Embedded_SQL#cite_note-langalts-3http://en.wikipedia.org/wiki/Embedded_SQL#cite_note-langalts-3http://en.wikipedia.org/wiki/Embedded_SQL#cite_note-langalts-3http://en.wikipedia.org/wiki/Embedded_SQL#cite_note-langalts-3http://en.wikipedia.org/wiki/Embedded_SQL#cite_note-langalts-3http://en.wikipedia.org/wiki/Embedded_SQL#cite_note-langalts-3http://en.wikipedia.org/wiki/PostgreSQLhttp://en.wikipedia.org/wiki/PostgreSQLhttp://en.wikipedia.org/wiki/PostgreSQLhttp://www.cobol-it.com/http://www.cobol-it.com/http://en.wikipedia.org/wiki/Altibasehttp://en.wikipedia.org/wiki/Altibasehttp://en.wikipedia.org/wiki/Altibasehttp://en.wikipedia.org/wiki/Altibasehttp://www.cobol-it.com/http://en.wikipedia.org/wiki/PostgreSQLhttp://en.wikipedia.org/wiki/Embedded_SQL#cite_note-langalts-3http://en.wikipedia.org/wiki/Embedded_SQL#cite_note-langalts-3http://en.wikipedia.org/wiki/Embedded_SQL#cite_note-langalts-3http://en.wikipedia.org/wiki/Pro*Chttp://en.wikipedia.org/wiki/Embedded_SQL#cite_note-2http://en.wikipedia.org/wiki/Oracle_Corporationhttp://en.wikipedia.org/wiki/Embedded_SQL#cite_note-1http://en.wikipedia.org/wiki/IBM_DB2
  • 7/31/2019 Embedded SQ1

    3/3

    COBOL

    Cobol-ITis distributing a Embedded SQL precompiler for COBOL.

    MySQL

    COBOLCobol-ITis distributing a Embedded SQL precompiler for COBOL.

    http://www.cobol-it.com/http://www.cobol-it.com/http://www.cobol-it.com/http://www.cobol-it.com/http://www.cobol-it.com/http://www.cobol-it.com/