PLSQLBench: Benchmarking LLM Systems for Executable Procedural Database Programming

Marianne Menglin Liu, Leonid Boytsov, Daniel W. Peterson, Pramuditha Perera, Rongguang Wang +11 more
8/16/2026
1 citation
cs.CL
benchmark-dataset

Official code: oracle-samples/plsqlbench (3 stars, last commit 2026-08-28).

Abstract

We present PLSQLBench, to our knowledge the first benchmark for evaluating whether LLMs can write executable PL/SQL programs, with correctness measured through execution-based tests. Existing LLM evaluations largely target general-purpose code generation or declarative text-to-SQL, leaving procedural database programming underexplored.

Show full abstract

PLSQLBench contains 2,865 instances: 2,594 single-turn tasks and 271 multi-turn conversations spanning 978 turns. The benchmark combines complex schema-grounded tasks over enterprise-style Spider 2 databases, simpler schema-grounded tasks derived from Spider, and MBPP-derived procedural problems, covering varying levels of database grounding and procedural complexity. Experiments with eight LLMs reveal recurring difficulties in schema grounding, PL/SQL dialect fidelity, procedural control flow, exception handling, and cross-turn consistency. Tool-augmented LLM agents improve performance on several schema-grounded evaluations, although substantial gaps remain. These results highlight procedural database programming capabilities not directly assessed by conventional code generation or text-to-SQL benchmarks. Our code is available at https://github.com/oracle-samples/plsqlbench.

View on arXivView PDF

Code Implementations(1)

[EMNLP Industry Track 2026] PLSQLBench: Benchmarking LLM Systems for Executable Procedural Database Programming

31Jul 16, 20263 months agoNOASSERTION

Similar Papers

Cite this paper

@article{liu2026plsqlbench,
  title  = {PLSQLBench: Benchmarking LLM Systems for Executable Procedural Database Programming},
  author = {Marianne Menglin Liu and Leonid Boytsov and Daniel W. Peterson and Pramuditha Perera and Rongguang Wang and Sai Ashish Somayajula and Syed Hamza Rafique and Rohit Saini and Shubham Pathak and Sujeeth Bharadwaj and Tao Sheng and Graham Horwood and Fahad Shah and Ankan Bansal and Sujith Ravi and Dan Roth},
  year   = {2026},
  eprint = {2608.15931},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.15931v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.15931.svg)](https://codeofpaper.com/paper/2608.15931)

Discussion