1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5 >Including Files</TITLE
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
10 HREF="mailto:pgsql-docs@postgresql.org"><LINK
12 TITLE="PostgreSQL 7.4.1 Documentation"
13 HREF="index.html"><LINK
15 TITLE="ECPG - Embedded SQL in C"
16 HREF="ecpg.html"><LINK
18 TITLE="Error Handling"
19 HREF="ecpg-errors.html"><LINK
21 TITLE="Processing Embedded SQL Programs"
22 HREF="ecpg-process.html"><LINK
25 HREF="stylesheet.css"><META
27 CONTENT="2003-12-22T03:48:47"></HEAD
33 SUMMARY="Header navigation table"
43 >PostgreSQL 7.4.1 Documentation</TH
51 HREF="ecpg-errors.html"
87 HREF="ecpg-process.html"
102 >30.10. Including Files</A
105 > To include an external file into your embedded SQL program, use:
107 CLASS="PROGRAMLISTING"
108 >EXEC SQL INCLUDE <VAR
113 The embedded SQL preprocessor will look for a file named
121 preprocess it, and include it in the resulting C output. Thus,
122 embedded SQL statements in the included file are handled correctly.
125 > Note that this is <SPAN
133 CLASS="PROGRAMLISTING"
139 because this file would not be subject to SQL command preprocessing.
140 Naturally, you can continue to use the C
144 > directive to include other header
154 > The include file name is case-sensitive, even though the rest of
157 >EXEC SQL INCLUDE</TT
158 > command follows the normal
159 SQL case-sensitivity rules.
169 SUMMARY="Footer navigation table"
180 HREF="ecpg-errors.html"
198 HREF="ecpg-process.html"
222 >Processing Embedded SQL Programs</TD