RefLib

Reference library for AI

Back

postgresql_16:5.3.14.8.4 Examples

PostgreSQL 16 > Client Interfaces > ECPG — Embedded SQL in C > Embedded SQL Commands > EXECUTE IMMEDIATE > Examples

Here is an example that executes an INSERT statement using EXECUTE IMMEDIATE and a host variable named command: sprintf(command, "INSERT INTO test (name, amount, letter) VALUES ('db: ''r1''', 1, 'f')"); EXEC SQL EXECUTE IMMEDIATE :command;

Back