Bird
0
0

Which language can be used inside a PostgreSQL DO block?

easy📝 Conceptual Q2 of 15
PostgreSQL - PL/pgSQL Fundamentals
Which language can be used inside a PostgreSQL DO block?
AHTML
BJavaScript
CPython
DPL/pgSQL
Step-by-Step Solution
Solution:
  1. Step 1: Identify supported languages for DO blocks

    PostgreSQL supports procedural languages like PL/pgSQL inside DO blocks.
  2. Step 2: Eliminate unsupported languages

    JavaScript, Python, and HTML are not natively supported inside DO blocks without extensions.
  3. Final Answer:

    PL/pgSQL -> Option D
  4. Quick Check:

    DO block language = PL/pgSQL [OK]
Quick Trick: DO blocks use PL/pgSQL by default [OK]
Common Mistakes:
  • Assuming DO blocks support JavaScript or Python by default
  • Confusing HTML with procedural languages
  • Not specifying language in DO block

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes