Preprogrammed SQL



index
Disabled back button Next Section
printable version

Section 0: Module Objectives or Competencies
Course Objective or Competency Module Objectives or Competency
The student will be able to write software programs that connect to a database and issue SQL statements to manipulate that database. The student will be able to explain the concept of embedding SQL code in software applications.
Section 1: Overview

With preprogrammed SQL, statements are included in a program that has been written in another programming language, known as a host language, such as C, C++, Java, Visual Basic, PHP, and Python.


Much of SQL's popularity as a data manipulation language is due in part to its ease of use and its powerful data-retrieval capabilities.

In the real world, however, database systems are related to other systems and programs, and you still need a conventional programming language such as Visual Basic .NET, C#, or PHP to integrate database systems with other programs and systems.

There are additional ways of preparing SQL statements in advance.

Section 2: Applications with SQL

Applications that include SQL code are sometimes referred to variously as embedded SQL, static embedded SQL, or preprogrammed SQL.

Preprogrammed SQL works well in many situations and can be used in any application for which the data access can be determined at program design time.

Another professor's discussion on embedded/preprogrammed SQL can be found here.