This page in other versions: Unsupported versions: 7.3 / 7.4 / 8.0 / 8.1

4.7. Including Files

To include an external file into your embedded SQL program, use:


The embedded SQL preprocessor will look for a file named filename.h, preprocess it, and include it in the resulting C output. Thus, embedded SQL statements in the included file are handled correctly.

Note that this is not the same as

#include <filename.h>

because the file would not be subject to SQL command preprocessing. Naturally, you can continue to use the C #include directive to include other header files.

Note: The include file name is case-sensitive, even though the rest of the EXEC SQL INCLUDE command follows the normal SQL case-sensitivity rules.

Submit correction

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.

Privacy Policy | About PostgreSQL
Copyright © 1996-2016 The PostgreSQL Global Development Group