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 3320524
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:57:13+00:00 2026-05-17T22:57:13+00:00

I mean, in the terms of the SQL queries, Are they compiled or interpreted

  • 0

I mean, in the terms of the SQL queries, Are they compiled or interpreted in a low level?. How it works internally, It is a SQL statement interpreted or compiled?.

  • 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-17T22:57:13+00:00Added an answer on May 17, 2026 at 10:57 pm

    It’s typically working like this:

        SQL String ---[Optimizer]---> Execution Plan ---[Execution]---> Result
    

    I personally like to see the optimizer (query planner) as something very similar to a compiler. It’s transforming the SQL statement into something that is more easily executable. However, it’s not nativity executable on the chip. This “compilation” is rather expensive–just like compiling C++ code. That’s the part where different execution variants are evaluated; the join order, which index to use, and so on. It’s a good practice to avoid this whenever possible by using bind parameters.

    The execution plan is then taken up for execution by the database. However, the strategy is already fixed. the execution is just doing it. This part is kind of interpreting the execution plan, not the SQL.

    After all, it is, somehow, similar to Java or .NET where the compilation turns the source code into a binary form that can be interpreted more easily. If we ignore JIT for this argument, the execution of a Java program is interpreting this meta-code.


    I have used this way to explain the benefit of using bind parameters for (Oracle) performance in my free eBook “Use The Index, Luke”.

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

Sidebar

Related Questions

I've got a question about the following terms..what do they mean in terms of
What do the terms CPU bound and I/O bound mean?
What does exactly the star in size terms in WPF mean?
In the terms of Apple's Documentation: What does Memory Footprint mean? How much Memory
As the title suggests, what does javax.naming.NoInitialContextException mean in non technical terms? And what
I was wondering what does the following sentence mean in simple terms for us
In Obj-C, what does it mean in simple terms; CoreData is not thread safe
What do %new and %class mean in terms of MobileSubstrate tweaks? For instance: %class
I was wondering what does the following sentence mean in laymens terms about the
Is there any difference between these two functions? I mean in-terms of the result

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.