#include "hello_worldODBC_cat.h"
#include <stdio.h>
#define SQL_EMPSTR ((SQLCHAR *) "")
int32_t main_hello_world_ODBCTutorial (int32_t argc, const char *const *argv)
{
SQLHDBC hCon;
SQLHSTMT hStmt;
SQLHENV hEnv;
{
{
{
{
{
{
hStmt, (
SQLCHAR *)
"USE \"hello_worldODBC\"",
{
hStmt,
(
SQLCHAR *)
"INSERT INTO info(myChar) " "VALUES('Hello World!')",
}
{
{
fprintf (
stderr,
"Sorry, I can't commit my changes "
"to the database.");
}
}
else
{
}
{
hStmt,
(
SQLCHAR *)
"SELECT myChar FROM info",
{
&iLen);
{
printf ("%s\n", sz);
}
else
{
fprintf (
stderr,
"Sorry, I can't fetch any rows "
"of data from the database.");
}
}
else
{
fprintf (
stderr,
"Sorry, I can't execute the query "
"statement.");
}
}
}
}
else
{
fprintf (
stderr,
"Sorry, I can't allocate a SQL statement handle.");
}
}
}
}
else
{
fprintf (stderr, "Sorry, I can't open the hello_world database.");
}
}
else
{
fprintf (stderr, "Sorry, I can't allocate a database handle.");
}
}