반응형 Cursor1 Pro-C 커서 패치 예제 #define SQL_CD sqlca.sqlcode; #define SQLCA_STORAGE_CLASS extern EXEC SQL INCLUDE sqlca; void CMyProc::PrepareCursor() { EXEC SQL BEGIN DECLARE SECTION; char strSelect[1024]; EXEC SQL BEGIN DECLARE SECTION; memset(strSelect, 0x00, sizeof(strSelect)); sprintf(strSelect, " SELECT ₩n" " SEQID, CODE ₩n" " FROM mytable SUBPARTITION(SP%d) ₩n" " WHERE STATE='1' ₩n", 1); try { EXEC SQL PREPARE PREF_TB_R.. 2021. 11. 30. 이전 1 다음 반응형