Embedded SQL

Use when the user needs to write, review, or migrate SQL queries in ADVPL/TLPP using BeginSQL/EndSQL blocks and macro expressions (%table%, %xfilial%, %notDel%, %exp%, %Order%) instead of raw TCQuery string concatenation -- covering INNER/LEFT JOIN patterns, aggregations (SUM/COUNT/GROUP BY/HAVING), subqueries, column type declarations, DML via TCSqlExec, and SQL-injection prevention. Also triggers on Portuguese phrasing like "consulta SQL", "query embutida", "migrar TCQuery para BeginSQL", "escrever SELECT com filial e notDel", or "montar JOIN em ADVPL".

thalysjuvenal 38cca26 2 files · 12.1 KB Updated

File contents

thalysjuvenal/advpl-specialist/tree/main/skills/embedded-sql commit 38cca2610c

Frequently asked questions

npx skillmds@latest add thalysjuvenal/embedded-sql