Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6554681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:43:44+00:00 2026-05-25T12:43:44+00:00

I am currently doing a *cough*Oracle*cough* database subject. The lecturer is introducing embedded SQL

  • 0

I am currently doing a *cough*Oracle*cough* database subject. The lecturer is introducing embedded SQL as the way you get other languages (e.g. C, C++) to interact with the (Oracle) database.

I have done some database work myself (on mysql) where I use dynamic sql.

As embedded SQL seems to be limited to a few Oracle and a few others, so is this more an attempt at lock-in, or is there real value in embedded SQL?

Edit: I just realized that the fact this lesson was right after a lesson on PL/SQL may be important.

Original question asked about parameterized SQL (now replaced by “dynamic sql” to improve question).

Aside: I am thinking that the ~$30 “SQL and relational theory” book I bought is teaching me more than this database class.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:43:45+00:00Added an answer on May 25, 2026 at 12:43 pm

    Embedded SQL is parsed at compile-time. One advantage is that you catch syntax errors at compile-time too, which can prevent some types of embarrassing runtime errors. It also means that there’s no way SQL injection vulnerabilities can alter your intended SQL syntax at runtime.

    Virtually all SQL programmers these days put SQL into strings, and have these strings parsed at runtime. That’s the original definition of dynamic SQL. This is also called the Call-Level Interface (CLI).

    Because it’s so common to use SQL in this way, a new definition for the “dynamic SQL” has become common usage, i.e. people use this term for SQL queries that they build up conditionally based on application logic and variables, as opposed to being a fixed string in their application that specifies the whole query.

    Parameterized queries is a completely independent distinction. You can put parameter placeholders into either embedded or dynamic SQL.

    For what it’s worth, I don’t know anyone who uses embedded SQL these days (except to maintain legacy application architecture). I would even be willing to argue with your lecturer that they’re teaching irrelevant, outdated technology.

    • Oracle 11g still supports a variety of SQL precompilers.
    • IBM DB2 UDB 9.7 support an SQL preprocessor called PREP.
    • Microsoft SQL Server has deprecated support for embedded SQL after MS SQL Server 2000.
    • Sybase reportedly also has discontinued embedded SQL (but I can’t find a reference to cite).
    • PostgreSQL still supports a preprocessor called ECPG for embedded SQL.
    • MySQL has never supported embedded SQL.
    • SQLite does not support an SQL preprocessor as far as I know.

    That accounts for the overwhelming majority of RDBMS market share.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently doing integration testing on a database and I have the following sql
I'm currently doing some oracle sql analysis and often encounter valid sql statement that
We are currently doing logo testing for Windows 7. We get it successful, however
Currently doing XML serialization however, it is very slow. Looking for a way to
I'm currently doing it this way, but seems to not be the proper way:
I'm currently doing some GUI testing on a ASP.net 2.0 application. The RDBMS is
I'm currently doing the following to use typed datasets in vs2008: Right click on
i'm currently doing some reports for SSRS, and i just confirm what i already
I am currently doing IE-hacks on a website I'm working on: http://www.timkjaerlange.com/wip/co2penhagen/ I got
I am currently doing some socket programming using C/C++. To be able to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.