unixODBC Programming - improve performance using multiple statements

ODBC programming generally has the following structure. And the SQL query statement is processed using the statement handle. However, if there are many sql statements to be processed, the above structure should use one statement handle to process the work sequentially. However, RDBMS such as MySQL, MariaDB, MS-SQL, and DB2 are parallel structures that process multiple commands at the same time. Therefore, it is advantageous to create multiple statement handles and process them simultaneously. <parallel processing> Determining whether the RDBMS supports parallelism ODBC SDK provides an API to know the number of statement handles that RDBMS can support simultaneously. You can use the SQLGetInfo function. SQLUSMALLINT max_concur_act = - 1 ; rc1 = SQLGetInfo(dbc, SQL_MAX_CONCURRENT_ACTIVITIES , & max_concur_act, 0 , 0 ); if (SQL_SUCCEEDED(rc1)) { if ( 0 == max_concur_act) printf( "SQL_MAX_CONCURRENT unlimited or und...