Cを介してInformixにアクセスするレガシーアプリケーションに次のコードフラグメントが表示されます。コード内のSQLが何を達成しようとしているのかを誰かが説明できますか?ありがとう。
EXEC SQL BEGIN DECLARE SECTION;
int i_tableref;
EXEC SQL END DECLARE SECTION;
/* Some code here */
if (!i_sel_ref)
{
exec sql begin declare section;
const char *sql1 =
"select refer_num.nextval from table ( SET{''} )";
exec sql end declare section;
exec sql prepare oref_sel_fid from :sql1;
if ( sqlca.sqlcode != SQL_OK )
{
/* some code */
}
/* More code */
}