Use a pointer as a host variable if your program uses the
pointer to input data to an SQL statement.
For example, the following figure shows how you can associate a
cursor with a statement and insert values into a table.
The following figure shows how to use an integer pointer to input
data to an INSERT statement.
If you use a host variable that is a pointer to char to
receive data from a SELECT statement, you receive a compile-time warning
and your results might be truncated.
Have feedback?
Google Analytics is used to store comments and ratings. To provide a comment or rating for a topic, click Accept All Cookies or Allow All in Cookie Preferences in the footer of this page.