esql/debug/dynamic_insert.sqc
2024-05-30 14:25:59 +02:00

12 lines
208 B
Plaintext

#include <stdio.h>
signed main(){
EXEC SQL BEGIN DECLARE SECTION;
int i = 10;
EXEC SQL END DECLARE SECTION;
EXEC SQL CONNECT TO testdb AS myconnection;
EXEC SQL INSERT INTO a VALUES (:i);
return 0;
}