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/sqlplExtensions 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.| Extension | Source | Strength | SWH |
|---|---|---|---|
.sql | linguist | primary | 31.4M files |
.sql | pygments | primary | 31.4M files |
.db2 | linguist | secondary | 20.1K files |
Related languages
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
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.
| Rule | Ext | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.sql/1 | .sql | predicates | [{"kind": "any", "regexes": ["(?i:ALTER\\s+MODULE|MODE\\s+DB2SQL|\\bSYS(CAT|PROC)\\.|ASSOCIATE\\s+RESULT\\s+SET|\\bEND!\\s*$)"]}] |