[comp.databases] C library for SQL calls on DOS

crom@cuuxb.ATT.COM (Jack Dixon) (10/19/89)

We're looking for a database on DOS that has a C language SQL interface that
might look something like the following.  This is taken from Sybase on a Unix
machine, but we'd like something similar for DOS with the database residing
on the DOS machine.


dbcmd( dbproc, "select name, age from employee" );
dbsqlexec( dbproc );

while ( (result_code = dbresults(dbproc)) != NO_MORE_RESULTS )
{
	dbbind( dbproc, 1, NTBSTRINGBIND, 0, name );
	dbbind( dbproc, 2, INTBIND, 0, &age );

	while ( dbnextrow( dbproc ) != NO_MORE_ROWS )
	{
		printf( "name %s  age %d\n", name, age );
	}
}

We are not interested in an embedded query language -- just plain C function
calls.  Thanks for any product recommendations you can give me.
-- 
--
Jack Dixon,  AT&T
{ ...!att!vogon!jcd, jcd@vogon.att.com }