Array bind sample program

The arraybind.c sample program demonstrates the use of array binding in conjunction with a CS_LANG_CMD initiated by ct_command. The sample program uses a hard-coded query of a hard-coded table in the pubs2 database. This query is defined by a language command using a select statement. The arraybind.c program then processes the results using the standard ct_results while loop. It binds column values to program arrays, then fetches and displays the rows in the standard ct_fetch loop.

For more information about this sample program, see the leading comments in the example source file.

NoteThis sample requires the pubs2 database.