SQL PL

1 program Added 2026-03-12T00:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: SQL Procedural Language, DB2 SQL PL
Provenance: commit ca3d20e55d · authored 2026-03-12T10:35:08+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

7 sources · pl_id: pl/sqlpl
LLM (this repo) · 1PldbLinguistPygmentsWikipediaHyperpolyglotWikidata · Q1411245

Extensions claimed by this language

3 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.sqllinguistprimary31.4M files
.sqlpygmentsprimary31.4M files
.db2linguistsecondary20.1K files

Related languages

DG/L (0.25)SQL (0.25)Ptolemy (0.25)QPL (0.25)SPL (0.25)

LLM-contributed programs

Update Salary Stored Procedure

Provenance: commit ca3d20e55d · authored 2026-03-12T10:35:08+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.sql · added: 2026-03-12T00:00:00Z
CREATE PROCEDURE UPDATE_SALARY_IF (IN empNum CHAR(6), IN rating SMALLINT)
  LANGUAGE SQL
  BEGIN
    IF (rating = 1) THEN
      UPDATE employee
        SET salary = salary * 1.10, bonus = 1000
        WHERE empno = empNum;
    ELSEIF (rating = 2) THEN
      UPDATE employee
        SET salary = salary * 1.05, bonus = 500
        WHERE empno = empNum;
    ELSE
      UPDATE employee
        SET salary = salary * 1.03, bonus = 0
        WHERE empno = empNum;
    END IF;
  END

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Disambiguation rules

Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
RuleExtKindPredicates (truncated)
h/linguist/.sql/1.sqlpredicates[{"kind": "any", "regexes": ["(?i:ALTER\\s+MODULE|MODE\\s+DB2SQL|\\bSYS(CAT|PROC)\\.|ASSOCIATE\\s+RESULT\\s+SET|\\bEND!\\s*$)"]}]

Contribute — propose a file extension

Tell us where to find evidence about SQL PL (mapped to pl/sqlpl). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/SQL PL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← SQL SQL*Plus →