arraybind.c sample program

The arraybind.c sample program demonstrates how to use array binding 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.

NoteThis sample requires the pubs2 database.