SQL commands may be embedded in a "C" program with the routine
mscall. The routine mscall takes two arguments,
the database name and the SQL command.
mscall (database_directory, sql_command);
Both the database name and the SQL command are strings. The strings may
be built by the application program. The routine returns zero
(0) if the statement succeeds, and a non-zero value if it
fails. A failure may be caused by different events such as
a syntax error in the SQL command, or an invalid attribute
or table name.
|